commit e87d98b0ddbb2cfa873b4d0c13c751bb12224290
parent 383496e65ed2a965ab82e5cc3012fd3e0ca2afbf
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 21 Jan 2016 22:42:50 +0600
[yahoo] Add improve content id regexes (Closes #8290)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py
@@ -221,7 +221,8 @@ class YahooIE(InfoExtractor):
r'root\.App\.Cache\.context\.videoCache\.curVideo = \{"([^"]+)"',
r'"first_videoid"\s*:\s*"([^"]+)"',
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(
CONTENT_ID_REGEXES, webpage, 'content ID')