aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/yahoo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-11-06 21:11:18 +0700
committerSergey M․ <dstftw@gmail.com>2016-11-06 21:14:15 +0700
commitf420902a3b144c94fba449537e474aca0e101112 (patch)
tree33651706e9899d80736c88dffabf54f7032e55e1 /youtube_dl/extractor/yahoo.py
parentde328af36264c35a1af6037b1a39f42d5832887a (diff)
downloadyoutube-dl-f420902a3b144c94fba449537e474aca0e101112.zip
youtube-dl-f420902a3b144c94fba449537e474aca0e101112.tar.gz
youtube-dl-f420902a3b144c94fba449537e474aca0e101112.tar.bz2
[yahoo] Add another content id regex (closes #11088)
Diffstat (limited to 'youtube_dl/extractor/yahoo.py')
-rw-r--r--youtube_dl/extractor/yahoo.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py
index 91f0a0d..ca92c60 100644
--- a/youtube_dl/extractor/yahoo.py
+++ b/youtube_dl/extractor/yahoo.py
@@ -201,6 +201,19 @@ class YahooIE(InfoExtractor):
},
'skip': 'redirect to https://www.yahoo.com/music',
},
+ {
+ # ytwnews://cavideo/
+ 'url': 'https://tw.video.yahoo.com/movie-tw/單車天使-中文版預-092316541.html',
+ 'info_dict': {
+ 'id': 'ba133ff2-0793-3510-b636-59dfe9ff6cff',
+ 'ext': 'mp4',
+ 'title': '單車天使 - 中文版預',
+ 'description': '中文版預',
+ },
+ 'params': {
+ 'skip_download': True,
+ },
+ },
]
def _real_extract(self, url):
@@ -270,6 +283,7 @@ class YahooIE(InfoExtractor):
r'%s[^}]*"ccm_id"\s*:\s*"([^"]+)"' % re.escape(page_id),
r'<article[^>]data-uuid=["\']([^"\']+)',
r'yahoo://article/view\?.*\buuid=([^&"\']+)',
+ r'<meta[^<>]+["\']ytwnews://cavideo/(?:[^/]+/)+([\da-fA-F-]+)[&"\']',
]
video_id = self._search_regex(
CONTENT_ID_REGEXES, webpage, 'content ID')