From 1f446e65c955f1461e36a5237830c18de55fe8d5 Mon Sep 17 00:00:00 2001 From: Monson Shao Date: Tue, 19 Sep 2017 20:18:02 +0800 Subject: [PATCH] [youku] Add new url regex --- youtube_dl/extractor/youku.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py index 0c4bc2eda..052c97fa2 100644 --- a/youtube_dl/extractor/youku.py +++ b/youtube_dl/extractor/youku.py @@ -22,9 +22,14 @@ class YoukuIE(InfoExtractor): _VALID_URL = r'''(?x) (?: https?://( - (?:v|player)\.youku\.com/(?:v_show/id_|player\.php/sid/)| - video\.tudou\.com/v/)| - youku:) + v\.youku\.com/v_show/id_| + player\.youku\.com/player\.php/sid/| + player\.youku\.com/embed/| + cloud\.youku\.com/services/sharev\?vid=| + video\.tudou\.com/v/ + )| + youku: + ) (?P[A-Za-z0-9]+)(?:\.html|/v\.swf|) ''' @@ -115,6 +120,16 @@ class YoukuIE(InfoExtractor): 'uploader_url': 'http://i.youku.com/u/UOTUyODk5Ng==', 'tags': list, }, + }, { + 'url': 'http://cloud.youku.com/services/sharev?vid=XMzAwNzQzMjcyOA==', + 'info_dict': { + 'id': 'XMzAwNzQzMjcyOA', + }, + }, { + 'url': 'http://player.youku.com/embed/XMzAzMTU1NjAzMg==', + 'info_dict': { + 'id': 'XMzAzMTU1NjAzMg', + }, }, { 'url': 'http://video.tudou.com/v/XMjE4ODI3OTg2MA==.html', 'only_matching': True,