mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 10:31:29 +00:00
[InfoQ] Don't fail on missing audio format (#3573)
Closes #3441 Authored by: evansp
This commit is contained in:
parent
779da8e31b
commit
b3602f6824
|
@ -4,8 +4,10 @@
|
|||
compat_urlparse,
|
||||
)
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
determine_ext,
|
||||
update_url_query,
|
||||
traverse_obj,
|
||||
)
|
||||
from .bokecc import BokeCCBaseIE
|
||||
|
||||
|
@ -34,6 +36,7 @@ class InfoQIE(BokeCCBaseIE):
|
|||
'ext': 'flv',
|
||||
'description': 'md5:308d981fb28fa42f49f9568322c683ff',
|
||||
},
|
||||
'skip': 'Sorry, the page you visited does not exist',
|
||||
}, {
|
||||
'url': 'https://www.infoq.com/presentations/Simple-Made-Easy',
|
||||
'md5': '0e34642d4d9ef44bf86f66f6399672db',
|
||||
|
@ -86,8 +89,10 @@ def _extract_http_video(self, webpage):
|
|||
}]
|
||||
|
||||
def _extract_http_audio(self, webpage, video_id):
|
||||
fields = self._form_hidden_inputs('mp3Form', webpage)
|
||||
http_audio_url = fields.get('filename')
|
||||
try:
|
||||
http_audio_url = traverse_obj(self._form_hidden_inputs('mp3Form', webpage), 'filename')
|
||||
except ExtractorError:
|
||||
http_audio_url = None
|
||||
if not http_audio_url:
|
||||
return []
|
||||
|
||||
|
|
Loading…
Reference in a new issue