Browse Source

fix for detecting youtube embedded videos.

Johny Mo Swag 12 years ago
parent
commit
ed54491c60
1 changed files with 6 additions and 1 deletions
  1. 6 1
      youtube_dl/extractor/hotnewhiphop.py

+ 6 - 1
youtube_dl/extractor/hotnewhiphop.py

@@ -15,7 +15,12 @@ class HotNewHipHopIE(InfoExtractor):
         webpage_src = self._download_webpage(url, video_id)
 
         video_url_base64 = self._search_regex(r'data-path="(.*?)"',
-            webpage_src, u'video URL')
+            webpage_src, u'video URL', fatal=False)
+
+        if video_url_base64 == None:
+            video_url = self._search_regex(r'"contentUrl" content="(.*?)"', webpage_src,
+                u'video URL')
+            return self.url_result(video_url, ie='Youtube')
 
         video_url = base64.b64decode(video_url_base64)