aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-21 12:02:44 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-21 12:02:44 +0200
commit9732d77ed273406afcf9ed3ccb4d109824c9c69d (patch)
treede87c4b0cf4b62516b1cf6d4c6e8d1406436b95e /youtube_dl/YoutubeDL.py
parent199ece7eb83ffe7ba069b50080fe971df1db2d6c (diff)
[snotr] PEP8 and minor fixes (#3296)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py4
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):