From: Johny Mo Swag Date: Tue, 25 Jun 2013 01:58:49 +0000 (-0700) Subject: added Youtube embed detection to WorldstarIE X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d18596baf4e85509c6320b5749b613de88e594de;p=youtube-dl added Youtube embed detection to WorldstarIE --- diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.py index 54a77b696..f628e4fb1 100644 --- a/youtube_dl/extractor/worldstarhiphop.py +++ b/youtube_dl/extractor/worldstarhiphop.py @@ -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: