mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Merge pull request #922 from JohnyMoSwag/master
Added embedded youtube detection to WorldstarIE
This commit is contained in:
commit
a545d1d262
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ def _real_extract(self, url):
|
||||||
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
|
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
|
||||||
webpage_src, u'video URL')
|
webpage_src, u'video URL')
|
||||||
|
|
||||||
|
if 'youtube' in video_url:
|
||||||
|
self.to_screen(u'Youtube video detected:')
|
||||||
|
return self.url_result(video_url, ie='Youtube')
|
||||||
|
|
||||||
if 'mp4' in video_url:
|
if 'mp4' in video_url:
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue