1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Merge pull request #922 from JohnyMoSwag/master

Added embedded youtube detection to WorldstarIE
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-06-25 22:07:31 +02:00
commit a545d1d262

View file

@ -16,6 +16,10 @@ class WorldStarHipHopIE(InfoExtractor):
video_url = self._search_regex(r'so\.addVariable\("file","(.*?)"\)',
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:
ext = 'mp4'
else: