1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

[infoq] Make audio format extraction non fatal (closes #12938)

This commit is contained in:
Sergey M․ 2017-05-01 01:23:05 +07:00
parent 9edf47df7b
commit 74da856544
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -87,8 +87,8 @@ class InfoQIE(BokeCCBaseIE):
def _extract_http_audio(self, webpage, video_id): def _extract_http_audio(self, webpage, video_id):
fields = self._hidden_inputs(webpage) fields = self._hidden_inputs(webpage)
http_audio_url = fields['filename'] http_audio_url = fields.get('filename')
if http_audio_url is None: if not http_audio_url:
return [] return []
cookies_header = {'Cookie': self._extract_cookies(webpage)} cookies_header = {'Cookie': self._extract_cookies(webpage)}