projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9edf47d
)
[infoq] Make audio format extraction non fatal (closes #12938)
author
Sergey M․
<dstftw@gmail.com>
Sun, 30 Apr 2017 18:23:05 +0000
(
01:23
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 30 Apr 2017 18:23:05 +0000
(
01:23
+0700)
youtube_dl/extractor/infoq.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/infoq.py
b/youtube_dl/extractor/infoq.py
index 9fb71e8effe107c6e182c3537cd634b7ac21e9bb..fe425e786479e505aad8082745d43040d38ba881 100644
(file)
--- a/
youtube_dl/extractor/infoq.py
+++ b/
youtube_dl/extractor/infoq.py
@@
-87,8
+87,8
@@
class InfoQIE(BokeCCBaseIE):
def _extract_http_audio(self, webpage, video_id):
fields = self._hidden_inputs(webpage)
- http_audio_url = fields
['filename']
- if
http_audio_url is None
:
+ http_audio_url = fields
.get('filename')
+ if
not http_audio_url
:
return []
cookies_header = {'Cookie': self._extract_cookies(webpage)}