Browse Source

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

totalwebcasting
Sergey M․ 10 years ago
parent
commit
74f728249f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py 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)


Loading…
Cancel
Save