aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/ctvnews.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/ctvnews.py')
-rw-r--r--hypervideo_dl/extractor/ctvnews.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/hypervideo_dl/extractor/ctvnews.py b/hypervideo_dl/extractor/ctvnews.py
index 03f8cef..952f4c7 100644
--- a/hypervideo_dl/extractor/ctvnews.py
+++ b/hypervideo_dl/extractor/ctvnews.py
@@ -65,4 +65,9 @@ class CTVNewsIE(InfoExtractor):
})
entries = [ninecninemedia_url_result(clip_id) for clip_id in orderedSet(
re.findall(r'clip\.id\s*=\s*(\d+);', webpage))]
+ if not entries:
+ webpage = self._download_webpage(url, page_id)
+ if 'getAuthStates("' in webpage:
+ entries = [ninecninemedia_url_result(clip_id) for clip_id in
+ self._search_regex(r'getAuthStates\("([\d+,]+)"', webpage, 'clip ids').split(',')]
return self.playlist_result(entries, page_id)