aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/yahoo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-01-21 22:42:50 +0600
committerSergey M․ <dstftw@gmail.com>2016-01-21 22:42:50 +0600
commite87d98b0ddbb2cfa873b4d0c13c751bb12224290 (patch)
tree630da60c9efd5adfa5c66dc3b08a8729f252bcab /youtube_dl/extractor/yahoo.py
parent383496e65ed2a965ab82e5cc3012fd3e0ca2afbf (diff)
downloadyoutube-dl-e87d98b0ddbb2cfa873b4d0c13c751bb12224290.zip
youtube-dl-e87d98b0ddbb2cfa873b4d0c13c751bb12224290.tar.gz
youtube-dl-e87d98b0ddbb2cfa873b4d0c13c751bb12224290.tar.bz2
[yahoo] Add improve content id regexes (Closes #8290)
Diffstat (limited to 'youtube_dl/extractor/yahoo.py')
-rw-r--r--youtube_dl/extractor/yahoo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py
index 92b50f6..4c61429 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'<article[^>]data-uuid=["\']([^"\']+)',
+ r'yahoo://article/view\?.*\buuid=([^&"\']+)',
]
video_id = self._search_regex(
CONTENT_ID_REGEXES, webpage, 'content ID')