mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 19:29:51 +01:00
[sockshare] Do not require thumbnail anymore
Thumbnail is not present on the website anymore.
This commit is contained in:
parent
f37e3f99f0
commit
71d53ace2f
@ -25,7 +25,6 @@ class SockshareIE(InfoExtractor):
|
|||||||
'id': '437BE28B89D799D7',
|
'id': '437BE28B89D799D7',
|
||||||
'title': 'big_buck_bunny_720p_surround.avi',
|
'title': 'big_buck_bunny_720p_surround.avi',
|
||||||
'ext': 'avi',
|
'ext': 'avi',
|
||||||
'thumbnail': 're:^http://.*\.jpg$',
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +44,7 @@ def _real_extract(self, url):
|
|||||||
''', webpage, 'hash')
|
''', webpage, 'hash')
|
||||||
|
|
||||||
fields = {
|
fields = {
|
||||||
"hash": confirm_hash,
|
"hash": confirm_hash.encode('utf-8'),
|
||||||
"confirm": "Continue as Free User"
|
"confirm": "Continue as Free User"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +67,7 @@ def _real_extract(self, url):
|
|||||||
webpage, 'title', default=None)
|
webpage, 'title', default=None)
|
||||||
thumbnail = self._html_search_regex(
|
thumbnail = self._html_search_regex(
|
||||||
r'<img\s+src="([^"]*)".+?name="bg"',
|
r'<img\s+src="([^"]*)".+?name="bg"',
|
||||||
webpage, 'thumbnail')
|
webpage, 'thumbnail', default=None)
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'format_id': 'sd',
|
'format_id': 'sd',
|
||||||
|
Loading…
Reference in New Issue
Block a user