1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[snotr] PEP8 and minor fixes (#3296)

This commit is contained in:
Philipp Hagemeister
2014-07-21 12:02:44 +02:00
parent 199ece7eb8
commit 9732d77ed2
4 changed files with 41 additions and 42 deletions

View File

@ -1197,6 +1197,10 @@ class YoutubeDL(object):
if res:
res += ', '
res += format_bytes(fdict['filesize'])
elif fdict.get('filesize_approx') is not None:
if res:
res += ', '
res += '~' + format_bytes(fdict['filesize_approx'])
return res
def list_formats(self, info_dict):