1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 09:11:34 +00:00

added Youtube embed detection to WorldstarIE

This commit is contained in:
Johny Mo Swag 2013-06-24 18:58:49 -07:00
parent 7ce7e39476
commit d18596baf4

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('%s' % video_url, ie='Youtube')
if 'mp4' in video_url:
ext = 'mp4'
else: