mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-29 02:54:59 +00:00
[liveleak] Simplify and PEP 8
This commit is contained in:
parent
3779d524df
commit
8b0d3ee64e
1 changed files with 6 additions and 3 deletions
|
@ -56,7 +56,7 @@ class LiveLeakIE(InfoExtractor):
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
# Covers https://github.com/rg3/youtube-dl/pull/10664#issuecomment-247439521
|
# Covers https://github.com/rg3/youtube-dl/pull/10664#issuecomment-247439521
|
||||||
'url' : 'http://m.liveleak.com/view?i=763_1473349649',
|
'url': 'http://m.liveleak.com/view?i=763_1473349649',
|
||||||
'add_ie': ['Youtube'],
|
'add_ie': ['Youtube'],
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '763_1473349649',
|
'id': '763_1473349649',
|
||||||
|
@ -66,7 +66,10 @@ class LiveLeakIE(InfoExtractor):
|
||||||
'uploader': 'Ziz',
|
'uploader': 'Ziz',
|
||||||
'upload_date': '20160908',
|
'upload_date': '20160908',
|
||||||
'uploader_id': 'UCEbta5E_jqlZmEJsriTEtnw'
|
'uploader_id': 'UCEbta5E_jqlZmEJsriTEtnw'
|
||||||
}
|
},
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -100,7 +103,7 @@ class LiveLeakIE(InfoExtractor):
|
||||||
else:
|
else:
|
||||||
# Maybe an embed?
|
# Maybe an embed?
|
||||||
embed_url = self._search_regex(
|
embed_url = self._search_regex(
|
||||||
r'<iframe[^>]+src="((?:(?:http://www.prochan.com/embed\?)|(?:http://www.youtube.com/embed))[^"]+)"',
|
r'<iframe[^>]+src="(https?://(?:www\.)?(?:prochan|youtube)\.com/embed[^"]+)"',
|
||||||
webpage, 'embed URL')
|
webpage, 'embed URL')
|
||||||
return {
|
return {
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
|
|
Loading…
Reference in a new issue