Skip to content

A feature-rich command-line audio/video downloader

[youku] Fix fileid extraction

xuhaomine5106ba40203
diff --git a/youtube_dl/extractor/youku.py b/youtube_dl/extractor/youku.py
index e37f237c76..73f6f0e904 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):