[infoq] fix #957

This commit is contained in:
Mort Yao 2016-03-06 03:44:49 +01:00
parent bf9910ad97
commit ad6fcf2557

View File

@ -40,11 +40,9 @@ class Infoq(VideoExtractor):
] ]
request.install_opener(opener) request.install_opener(opener)
self.streams = { if s: self.streams['video'] = {'url': s }
'video' : { 'url': s }, if mp3: self.streams['audio'] = { 'url': mp3 }
'audio' : { 'url': mp3 }, if pdf: self.streams['slides'] = { 'url': pdf }
'slides' : { 'url': pdf }
}
def extract(self, **kwargs): def extract(self, **kwargs):
for i in self.streams: for i in self.streams: