improve efficiency

This commit is contained in:
lh 2015-12-09 23:38:48 +08:00
parent 1100eb6060
commit da22ec2724

View File

@ -179,7 +179,7 @@ class Youku(VideoExtractor):
if 'alias-of' in stream_types[stream_id]: if 'alias-of' in stream_types[stream_id]:
stream_id = stream_types[stream_id]['alias-of'] stream_id = stream_types[stream_id]['alias-of']
if stream_id in self.streams: if stream_id in self.streams:
continue break
self.streams[stream_id] = { self.streams[stream_id] = {
'container': stream_types[stream_id]['container'], 'container': stream_types[stream_id]['container'],
'video_profile': stream_types[stream_id]['video_profile'], 'video_profile': stream_types[stream_id]['video_profile'],