[youku] Fix extraction; update ccode (closes #14815)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 22 Nov 2017 14:49:48 +0000 (22:49 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 22 Nov 2017 14:49:48 +0000 (22:49 +0800)
ChangeLog
youtube_dl/extractor/youku.py

index 6b4befb8fc1df2a7b577035141acb5a0449471f0..e3b7750f6eef2e510e5119e7733ef79d88658936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [youku] Fix extraction; update ccode (#14815)
+
+
 version 2017.11.15
 
 Core
index 0c4bc2edab616cceff7cf68f7f64d12010c6e16d..6822a30bc142613cde74ecd397ab65957a289510 100644 (file)
@@ -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,