diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 5cf8212b..85567507 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -2,7 +2,8 @@ Please make sure these boxes are checked before submitting your issue – thank - [ ] You can actually watch the video in your browser or mobile application, but not download them with `you-get`. - [ ] Your `you-get` is up-to-date. -- [ ] The issue is not yet reported on or . If so, please add your comments under the existing issue. +- [ ] I have read and tried to do so. +- [ ] The issue is not yet reported on or . If so, please add your comments under the existing issue. - [ ] The issue (or question) is really about `you-get`, not about some other code or project. Run the command with the `--debug` option, and paste the full output inside the fences: @@ -22,7 +23,8 @@ If there's anything else you would like to say (e.g. in case your issue is not a - [ ] 你可以在浏览器或移动端中观看视频,但不能使用`you-get`下载. - [ ] 您的`you-get`为最新版. -- [ ] 您的问题没有在 报告,否则请在原有issue下报告. +- [ ] 我已经阅读并按 中的指引进行了操作. +- [ ] 您的问题没有在 , 报告,否则请在原有issue下报告. - [ ] 本问题确实关于`you-get`, 而不是其他项目. 请使用`--debug`运行,并将输出粘贴在下面: diff --git a/src/you_get/extractors/infoq.py b/src/you_get/extractors/infoq.py index 8214b473..cf8b59e0 100644 --- a/src/you_get/extractors/infoq.py +++ b/src/you_get/extractors/infoq.py @@ -40,11 +40,9 @@ class Infoq(VideoExtractor): ] request.install_opener(opener) - self.streams = { - 'video' : { 'url': s }, - 'audio' : { 'url': mp3 }, - 'slides' : { 'url': pdf } - } + if s: self.streams['video'] = {'url': s } + if mp3: self.streams['audio'] = { 'url': mp3 } + if pdf: self.streams['slides'] = { 'url': pdf } def extract(self, **kwargs): for i in self.streams: