projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a1738
)
[extractor/common] Fallback to empty string for (yet) missing `format_id` in `_sort_f...
author
Sergey M․
<dstftw@gmail.com>
Wed, 6 May 2015 15:24:24 +0000
(21:24 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 6 May 2015 15:24:24 +0000
(21:24 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 3ae5d52127f1014b235447692bb4ed24615178bd..34e27a35ad2d28d0618e22a42cfedfb97b70dc5f 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-764,7
+764,7
@@
class InfoExtractor(object):
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('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)