mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-12 10:11:07 +01:00
[CTVNewsIE] Add fallback for video search (#2378)
Closes #2370 Authored by: Ashish0804
This commit is contained in:
parent
42c5458a02
commit
dfb7f2a25d
@ -65,4 +65,9 @@ def ninecninemedia_url_result(clip_id):
|
|||||||
})
|
})
|
||||||
entries = [ninecninemedia_url_result(clip_id) for clip_id in orderedSet(
|
entries = [ninecninemedia_url_result(clip_id) for clip_id in orderedSet(
|
||||||
re.findall(r'clip\.id\s*=\s*(\d+);', webpage))]
|
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)
|
return self.playlist_result(entries, page_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user