youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 74f728249fcf58b0c99eb69606b04b304d882423
parent d6a1738892038940ef4af59a33aeddc99ef0c966
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed,  6 May 2015 21:24:24 +0600

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

Diffstat:
Myoutube_dl/extractor/common.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)