projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
383496e
)
[yahoo] Add improve content id regexes (Closes #8290)
author
Sergey M․
<dstftw@gmail.com>
Thu, 21 Jan 2016 16:42:50 +0000
(22:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 21 Jan 2016 16:42:50 +0000
(22:42 +0600)
youtube_dl/extractor/yahoo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/yahoo.py
b/youtube_dl/extractor/yahoo.py
index 92b50f6f7598df3eb687d30e5465f851a02554ed..4c6142927d38c088c5b03306439bd624f6e209e7 100644
(file)
--- 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')