From 282962bd369ae5b6a9fcca97c0caa8fa3dfe6ded Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 7 Jan 2014 08:08:48 +0100 Subject: [PATCH] --list-formats: Only add "@" if vbr is given --- youtube_dl/YoutubeDL.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index e1be38a53..6b1962850 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1062,7 +1062,9 @@ def format_note(fdict): res += '%4dk ' % fdict['tbr'] if (fdict.get('vcodec') is not None and fdict.get('vcodec') != 'none'): - res += '%-5s@' % fdict['vcodec'] + res += '%-5s' % fdict['vcodec'] + if fdict.get('vbr') is not None: + res += '@' elif fdict.get('vbr') is not None and fdict.get('abr') is not None: res += 'video@' if fdict.get('vbr') is not None: