From: Jaime Marquínez Ferrándiz Date: Tue, 25 Jun 2013 20:07:31 +0000 (+0200) Subject: Merge pull request #922 from JohnyMoSwag/master X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a545d1d2625081ab92a5223efdd42c1fddb87b58;p=youtube-dl Merge pull request #922 from JohnyMoSwag/master Added embedded youtube detection to WorldstarIE --- a545d1d2625081ab92a5223efdd42c1fddb87b58 diff --cc youtube_dl/extractor/worldstarhiphop.py index 54a77b696,f628e4fb1..531d0889f --- a/youtube_dl/extractor/worldstarhiphop.py +++ b/youtube_dl/extractor/worldstarhiphop.py @@@ -16,6 -16,10 +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') ++ return self.url_result(video_url, ie='Youtube') + if 'mp4' in video_url: ext = 'mp4' else: