From: Sergey M․ Date: Thu, 21 Jan 2016 16:42:50 +0000 (+0600) Subject: [yahoo] Add improve content id regexes (Closes #8290) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e87d98b0ddbb2cfa873b4d0c13c751bb12224290;p=youtube-dl [yahoo] Add improve content id regexes (Closes #8290) --- diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index 92b50f6f7..4c6142927 100644 --- 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']data-uuid=["\']([^"\']+)', + r'yahoo://article/view\?.*\buuid=([^&"\']+)', ] video_id = self._search_regex( CONTENT_ID_REGEXES, webpage, 'content ID')