mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 23:35:04 +00:00
--list-formats: Only add "@" if vbr is given
This commit is contained in:
parent
c93c2ab1c3
commit
282962bd36
1 changed files with 3 additions and 1 deletions
|
@ -1062,7 +1062,9 @@ def format_note(fdict):
|
||||||
res += '%4dk ' % fdict['tbr']
|
res += '%4dk ' % fdict['tbr']
|
||||||
if (fdict.get('vcodec') is not None and
|
if (fdict.get('vcodec') is not None and
|
||||||
fdict.get('vcodec') != 'none'):
|
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:
|
elif fdict.get('vbr') is not None and fdict.get('abr') is not None:
|
||||||
res += 'video@'
|
res += 'video@'
|
||||||
if fdict.get('vbr') is not None:
|
if fdict.get('vbr') is not None:
|
||||||
|
|
Loading…
Reference in a new issue