1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 19:53:21 +08:00

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

This commit is contained in:
Philipp Hagemeister 2014-01-07 08:08:48 +01:00
parent c93c2ab1c3
commit 282962bd36

View File

@ -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: