From 1fbbd5479b59aab9c2da433b31e4d5bb2c11c51f Mon Sep 17 00:00:00 2001 From: xuhaomin Date: Sat, 15 Apr 2017 02:06:11 +0800 Subject: [PATCH] youku change the JSON metadata youku change the json metadata from http://play.youku.com/.... so we need to change the code to get fileid --- youtube_dl/extractor/youku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py index e37f237c7..73f6f0e90 100644 --- a/youtube_dl/extractor/youku.py +++ b/youtube_dl/extractor/youku.py @@ -105,7 +105,7 @@ class YoukuIE(InfoExtractor): if stream.get('channel_type') == 'tail': continue format = stream.get('stream_type') - fileid = stream['stream_fileid'] + fileid = stream['segs'][0]['fileid'] fileid_dict[format] = fileid def get_fileid(format, n):