projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c3af7
)
[carambatv:page] Fix extraction (closes #18739)
author
Sergey M․
<dstftw@gmail.com>
Fri, 4 Jan 2019 15:21:53 +0000
(22:21 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 4 Jan 2019 15:21:53 +0000
(22:21 +0700)
youtube_dl/extractor/carambatv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/carambatv.py
b/youtube_dl/extractor/carambatv.py
index 9ba909a918755b5a02f8d8fe684a6f73a438ada9..b57b86af7e6b05527e102974b6533b4538f5d366 100644
(file)
--- a/
youtube_dl/extractor/carambatv.py
+++ b/
youtube_dl/extractor/carambatv.py
@@
-82,6
+82,12
@@
class CarambaTVPageIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
videomore_url = VideomoreIE._extract_url(webpage)
+ if not videomore_url:
+ videomore_id = self._search_regex(
+ r'getVMCode\s*\(\s*["\']?(\d+)', webpage, 'videomore id',
+ default=None)
+ if videomore_id:
+ videomore_url = 'videomore:%s' % videomore_id
if videomore_url:
title = self._og_search_title(webpage)
return {