diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-07-21 12:02:44 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-07-21 12:02:44 +0200 |
commit | 9732d77ed273406afcf9ed3ccb4d109824c9c69d (patch) | |
tree | de87c4b0cf4b62516b1cf6d4c6e8d1406436b95e /youtube_dl/YoutubeDL.py | |
parent | 199ece7eb83ffe7ba069b50080fe971df1db2d6c (diff) |
[snotr] PEP8 and minor fixes (#3296)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 3dff723b8..686988fe5 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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): |