[youku] add support for audio languages, fix #369 (again)

This commit is contained in:
Mort Yao 2015-11-24 21:30:02 +01:00
parent 7fd4fac40f
commit 6fdb9ca179

View File

@ -138,7 +138,12 @@ class Youku(VideoExtractor):
'video_profile': stream_types[stream_id]['video_profile'],
'size': stream['size']
}
# TBD: self.audio_lang['url']
# Audio languages
if 'dvd' in data and 'audiolang' in data['dvd']:
self.audiolang = data['dvd']['audiolang']
for i in self.audiolang:
i['url'] = 'http://v.youku.com/v_show/id_{}'.format(i['vid'])
def extract(self, **kwargs):
if 'stream_id' in kwargs and kwargs['stream_id']: