mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-22 18:27:34 +01:00
Bugfix for 39f32f1715c0dffb7626dda7307db6388bb7abaa
when `--ignore-no-formats-error`
This commit is contained in:
parent
8b37c58f8b
commit
9ebac35577
@ -2557,7 +2557,7 @@ class YoutubeDL:
|
||||
formats = self._get_formats(info_dict)
|
||||
|
||||
# Backward compatibility with InfoExtractor._sort_formats
|
||||
field_preference = formats[0].pop('__sort_fields', None)
|
||||
field_preference = (formats or [{}])[0].pop('__sort_fields', None)
|
||||
if field_preference:
|
||||
info_dict['_format_sort_fields'] = field_preference
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user