aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:08:48 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:08:48 +0100
commit282962bd369ae5b6a9fcca97c0caa8fa3dfe6ded (patch)
treef9f58565cd6b1f1891d811783be9183ee442b89e /youtube_dl/YoutubeDL.py
parentc93c2ab1c3bc84f5525e2771c48bcd6d384d9dae (diff)
--list-formats: Only add "@" if vbr is given
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r--youtube_dl/YoutubeDL.py4
1 files changed, 3 insertions, 1 deletions
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 @@ 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: