A feature-rich command-line audio/video downloader
added Youtube embed detection to WorldstarIE
Johny Mo Swagd18596baf4e8
diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.pyindex 54a77b6969..f628e4fb1e 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: