aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/worldstarhiphop.py
diff options
context:
space:
mode:
authorJohny Mo Swag <johnymo@me.com>2013-06-24 18:58:49 -0700
committerJohny Mo Swag <johnymo@me.com>2013-06-24 18:58:49 -0700
commitd18596baf4e85509c6320b5749b613de88e594de (patch)
treef375790ac96042315ebecd0fb5390e326c452845 /youtube_dl/extractor/worldstarhiphop.py
parent7ce7e3947600bfb4b8b84e00c02aabc91b5ed0ae (diff)
downloadyoutube-dl-d18596baf4e85509c6320b5749b613de88e594de.zip
youtube-dl-d18596baf4e85509c6320b5749b613de88e594de.tar.gz
youtube-dl-d18596baf4e85509c6320b5749b613de88e594de.tar.bz2
added Youtube embed detection to WorldstarIE
Diffstat (limited to 'youtube_dl/extractor/worldstarhiphop.py')
-rw-r--r--youtube_dl/extractor/worldstarhiphop.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/worldstarhiphop.py b/youtube_dl/extractor/worldstarhiphop.py
index 54a77b6..f628e4f 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: