From 1a6373ef3960add0117f797e0afe3322352c1c52 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 3 Feb 2015 10:53:05 +0100 Subject: [PATCH] [sort_formats] Prefer bitrate over video size 720p @ 1000KB/s looks way better than 1080p @ 500KB/s --- youtube_dl/extractor/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 9e517e3ac..653d793fc 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -704,11 +704,11 @@ def _formats_key(f): preference, f.get('language_preference') if f.get('language_preference') is not None else -1, f.get('quality') if f.get('quality') is not None else -1, - f.get('height') if f.get('height') is not None else -1, - f.get('width') if f.get('width') is not None else -1, - ext_preference, f.get('tbr') if f.get('tbr') is not None else -1, f.get('vbr') if f.get('vbr') is not None else -1, + ext_preference, + f.get('height') if f.get('height') is not None else -1, + f.get('width') if f.get('width') is not None else -1, f.get('abr') if f.get('abr') is not None else -1, audio_ext_preference, f.get('fps') if f.get('fps') is not None else -1,