mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-05 06:21:01 +00:00
parent
8b37c58f8b
commit
9ebac35577
1 changed files with 1 additions and 1 deletions
|
@ -2557,7 +2557,7 @@ def sanitize_numeric_fields(info):
|
||||||
formats = self._get_formats(info_dict)
|
formats = self._get_formats(info_dict)
|
||||||
|
|
||||||
# Backward compatibility with InfoExtractor._sort_formats
|
# 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:
|
if field_preference:
|
||||||
info_dict['_format_sort_fields'] = field_preference
|
info_dict['_format_sort_fields'] = field_preference
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue