mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 13:23:20 +00:00
[yahoo] Add improve content id regexes (Closes #8290)
This commit is contained in:
parent
383496e65e
commit
e87d98b0dd
|
@ -221,7 +221,8 @@ def _real_extract(self, url):
|
||||||
r'root\.App\.Cache\.context\.videoCache\.curVideo = \{"([^"]+)"',
|
r'root\.App\.Cache\.context\.videoCache\.curVideo = \{"([^"]+)"',
|
||||||
r'"first_videoid"\s*:\s*"([^"]+)"',
|
r'"first_videoid"\s*:\s*"([^"]+)"',
|
||||||
r'%s[^}]*"ccm_id"\s*:\s*"([^"]+)"' % re.escape(page_id),
|
r'%s[^}]*"ccm_id"\s*:\s*"([^"]+)"' % re.escape(page_id),
|
||||||
r'yahoo:\/\/article\/view\?uuid=([^&]+)&',
|
r'<article[^>]data-uuid=["\']([^"\']+)',
|
||||||
|
r'yahoo://article/view\?.*\buuid=([^&"\']+)',
|
||||||
]
|
]
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
CONTENT_ID_REGEXES, webpage, 'content ID')
|
CONTENT_ID_REGEXES, webpage, 'content ID')
|
||||||
|
|
Loading…
Reference in a new issue