projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3779d52
)
[liveleak] Simplify and PEP 8
author
Sergey M․
<dstftw@gmail.com>
Tue, 29 Nov 2016 16:42:19 +0000
(23:42 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 29 Nov 2016 16:42:19 +0000
(23:42 +0700)
youtube_dl/extractor/liveleak.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/liveleak.py
b/youtube_dl/extractor/liveleak.py
index 40fef9bb6018b7c61baedbf67268d81c72b88f69..b84e4dd6c20415a1f8bf7a562a61f80bbdbd5786 100644
(file)
--- a/
youtube_dl/extractor/liveleak.py
+++ b/
youtube_dl/extractor/liveleak.py
@@
-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'],
'info_dict': {
'id': '763_1473349649',
'add_ie': ['Youtube'],
'info_dict': {
'id': '763_1473349649',
@@
-66,7
+66,10
@@
class LiveLeakIE(InfoExtractor):
'uploader': 'Ziz',
'upload_date': '20160908',
'uploader_id': 'UCEbta5E_jqlZmEJsriTEtnw'
'uploader': 'Ziz',
'upload_date': '20160908',
'uploader_id': 'UCEbta5E_jqlZmEJsriTEtnw'
- }
+ },
+ 'params': {
+ 'skip_download': True,
+ },
}]
@staticmethod
}]
@staticmethod
@@
-100,7
+103,7
@@
class LiveLeakIE(InfoExtractor):
else:
# Maybe an embed?
embed_url = self._search_regex(
else:
# Maybe an embed?
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')
return {
'_type': 'url_transparent',
webpage, 'embed URL')
return {
'_type': 'url_transparent',