diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-01-04 22:21:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-01-04 22:21:53 +0700 |
commit | c87f65e43dea0f9edf1b5ed8979e274902fb60a9 (patch) | |
tree | db95b83635b7f5f2beeb8d6537d9dc794e0f36d5 /youtube_dl | |
parent | d7c3af7a72a1e6bd7f93321cce4daf2a13ebdf12 (diff) |
[carambatv:page] Fix extraction (closes #18739)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/carambatv.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/carambatv.py b/youtube_dl/extractor/carambatv.py index 9ba909a91..b57b86af7 100644 --- 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 { |