mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 06:09:17 +00:00
[crooksandliars] resolve protocol-relative URLs
This commit is contained in:
parent
d2272fcf6e
commit
6e53c91608
|
@ -18,7 +18,7 @@ class CrooksAndLiarsIE(InfoExtractor):
|
||||||
'title': "Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!",
|
'title': "Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!",
|
||||||
'description': "Fox News, Fox & Friends Weekend, April 4, 2015. Read more... http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists",
|
'description': "Fox News, Fox & Friends Weekend, April 4, 2015. Read more... http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists",
|
||||||
'timestamp': 1428207000,
|
'timestamp': 1428207000,
|
||||||
'thumbnail': '//crooksandliars.com/files/mediaposters/2015/04/31235.jpg?ts=1428207050',
|
'thumbnail': 'https://crooksandliars.com/files/mediaposters/2015/04/31235.jpg?ts=1428207050',
|
||||||
'uploader': "Heather",
|
'uploader': "Heather",
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
@ -46,7 +46,7 @@ def _real_extract(self, url):
|
||||||
'uploader': manifest['author'],
|
'uploader': manifest['author'],
|
||||||
'title': manifest['title'],
|
'title': manifest['title'],
|
||||||
'description': manifest['description'],
|
'description': manifest['description'],
|
||||||
'thumbnail': manifest['poster'],
|
'thumbnail': self._proto_relative_url(manifest['poster']),
|
||||||
'duration': manifest['duration'],
|
'duration': manifest['duration'],
|
||||||
'timestamp': int(manifest['created']),
|
'timestamp': int(manifest['created']),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|
Loading…
Reference in a new issue