mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[infoq] fix #957
This commit is contained in:
parent
bf9910ad97
commit
ad6fcf2557
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user