[youku] close #991

This commit is contained in:
Mort Yao 2016-03-16 21:52:30 +01:00
parent 318b74827d
commit b4cbd6dc6c

View File

@ -203,6 +203,7 @@ class Youku(VideoExtractor):
if stream_id in stream_types and stream['audio_lang'] == audio_lang:
if 'alias-of' in stream_types[stream_id]:
stream_id = stream_types[stream_id]['alias-of']
if stream_id in self.streams: continue # STOP!
self.streams[stream_id] = {
'container': stream_types[stream_id]['container'],
'video_profile': stream_types[stream_id]['video_profile'],
@ -217,6 +218,7 @@ class Youku(VideoExtractor):
if stream_id in stream_types and stream['audio_lang'] == audio_lang:
if 'alias-of' in stream_types[stream_id]:
stream_id = stream_types[stream_id]['alias-of']
if stream_id in self.streams_fallback_parameter: continue # STOP!
self.streams_fallback_parameter[stream_id] = {
'fileid': stream['stream_fileid'],
'segs': stream['segs']