diff options
author | Johny Mo Swag <johnymo@me.com> | 2013-06-27 08:39:32 -0700 |
---|---|---|
committer | Johny Mo Swag <johnymo@me.com> | 2013-06-27 08:39:32 -0700 |
commit | ed54491c60d15aee454a322bacbf2fb4ef38d2ab (patch) | |
tree | 01ff0422685728458ba8175933ddccbfff18c178 /youtube_dl/extractor | |
parent | 8b50fed04b15647210f7597150b84514ca6ff7d0 (diff) |
fix for detecting youtube embedded videos.
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/hotnewhiphop.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/hotnewhiphop.py b/youtube_dl/extractor/hotnewhiphop.py index 24f6e8143..b2fb56e70 100644 --- a/youtube_dl/extractor/hotnewhiphop.py +++ b/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) |