Explorar o código

[youku] Fix fileid extraction

xuhaomin %!s(int64=8) %!d(string=hai) anos
pai
achega
e5106ba402
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/youku.py

+ 1 - 1
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):