mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
This commit is contained in:
parent
5d90a8a5f3
commit
a94e7c195e
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,6 @@ def _talk_info(self, url, video_name):
|
|||
|
||||
http_url = None
|
||||
for format_id, resources in resources_.items():
|
||||
if not isinstance(resources, dict):
|
||||
continue
|
||||
if format_id == 'h264':
|
||||
for resource in resources:
|
||||
h264_url = resource.get('file')
|
||||
|
@ -242,6 +240,8 @@ def _talk_info(self, url, video_name):
|
|||
'tbr': int_or_none(resource.get('bitrate')),
|
||||
})
|
||||
elif format_id == 'hls':
|
||||
if not isinstance(resources, dict):
|
||||
continue
|
||||
stream_url = url_or_none(resources.get('stream'))
|
||||
if not stream_url:
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue