From 8f639411042d35cd3be6eeff485e3015bafce4d7 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Wed, 22 Nov 2017 22:49:48 +0800 Subject: [PATCH] [youku] Fix extraction; update ccode (closes #14815) --- ChangeLog | 6 ++++++ youtube_dl/extractor/youku.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b4befb8f..e3b7750f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +version + +Extractors +* [youku] Fix extraction; update ccode (#14815) + + version 2017.11.15 Core diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py index 0c4bc2eda..6822a30bc 100644 --- a/youtube_dl/extractor/youku.py +++ b/youtube_dl/extractor/youku.py @@ -154,7 +154,7 @@ class YoukuIE(InfoExtractor): # request basic data basic_data_params = { 'vid': video_id, - 'ccode': '0402' if 'tudou.com' in url else '0401', + 'ccode': '0502', 'client_ip': '192.168.1.1', 'utid': cna, 'client_ts': time.time() / 1000, -- 2.40.0