[yahoo] Add improve content id regexes (Closes #8290)
authorSergey M․ <dstftw@gmail.com>
Thu, 21 Jan 2016 16:42:50 +0000 (22:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 Jan 2016 16:42:50 +0000 (22:42 +0600)
youtube_dl/extractor/yahoo.py

index 92b50f6f7598df3eb687d30e5465f851a02554ed..4c6142927d38c088c5b03306439bd624f6e209e7 100644 (file)
@@ -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')