1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/common] Fallback to empty string for (yet) missing format_id in _sort_formats (Closes #5624)

This commit is contained in:
Sergey M․ 2015-05-06 21:24:24 +06:00
parent d6a1738892
commit 74f728249f

View file

@ -764,7 +764,7 @@ class InfoExtractor(object):
f.get('fps') if f.get('fps') is not None else -1, f.get('fps') if f.get('fps') is not None else -1,
f.get('filesize_approx') if f.get('filesize_approx') is not None else -1, f.get('filesize_approx') if f.get('filesize_approx') is not None else -1,
f.get('source_preference') if f.get('source_preference') is not None else -1, f.get('source_preference') if f.get('source_preference') is not None else -1,
f.get('format_id'), f.get('format_id') if f.get('format_id') is not None else '',
) )
formats.sort(key=_formats_key) formats.sort(key=_formats_key)