projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b50fed
)
fix for detecting youtube embedded videos.
author
Johny Mo Swag
<johnymo@me.com>
Thu, 27 Jun 2013 15:39:32 +0000
(08:39 -0700)
committer
Johny Mo Swag
<johnymo@me.com>
Thu, 27 Jun 2013 15:39:32 +0000
(08:39 -0700)
youtube_dl/extractor/hotnewhiphop.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/hotnewhiphop.py
b/youtube_dl/extractor/hotnewhiphop.py
index 24f6e81438bfd2827693b1071f9964319cd88818..b2fb56e703e4fd3e2de63582f2bea8af186e256d 100644
(file)
--- 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)