Skip to content

A feature-rich command-line audio/video downloader

--list-formats: Only add "@" if vbr is given

Philipp Hagemeister282962bd369a
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index e1be38a53f..6b19628506 100644
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1062,7 +1062,9 @@ class YoutubeDL(object):
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: