mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:02:13 +01:00
[CTVNewsIE] Add fallback for video search (#2378)
Closes #2370 Authored by: Ashish0804
This commit is contained in:
parent
42c5458a02
commit
dfb7f2a25d
1 changed files with 5 additions and 0 deletions
|
@ -65,4 +65,9 @@ def ninecninemedia_url_result(clip_id):
|
|||
})
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue