Support youtube embed url in liveleak post
Example Post Link : http://m.liveleak.com/view?i=763_1473349649
This commit is contained in:
parent
c035dba19e
commit
15a95f544a
@ -87,7 +87,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\?[^"]+)"',
|
r'<iframe[^>]+src="((http://www.prochan.com/embed\?)|(http://www.youtube.com/embed)[^"]+)"',
|
||||||
webpage, 'embed URL')
|
webpage, 'embed URL')
|
||||||
return {
|
return {
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
@ -107,6 +107,7 @@ class LiveLeakIE(InfoExtractor):
|
|||||||
'format_note': s.get('label'),
|
'format_note': s.get('label'),
|
||||||
'url': s['file'],
|
'url': s['file'],
|
||||||
} for i, s in enumerate(sources)]
|
} for i, s in enumerate(sources)]
|
||||||
|
|
||||||
for i, s in enumerate(sources):
|
for i, s in enumerate(sources):
|
||||||
# Removing '.h264_*.mp4' gives the raw video, which is essentially
|
# Removing '.h264_*.mp4' gives the raw video, which is essentially
|
||||||
# the same video without the LiveLeak logo at the top (see
|
# the same video without the LiveLeak logo at the top (see
|
||||||
|
Loading…
x
Reference in New Issue
Block a user