1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-30 04:08:01 +01:00

Now uses to_screen instead of print to print the size. Size is now human

readable
This commit is contained in:
Max 2012-05-01 12:54:07 -04:00
parent a13a1d170f
commit 660dfae585

View File

@ -1038,7 +1038,7 @@ class FileDownloader(object):
return False return False
data_len = data.info().get('Content-length', None) data_len = data.info().get('Content-length', None)
print '[youtube] File size: ' + data_len + ' bytes' self.to_screen(u'[info] File size: ' + self.format_bytes(data_len) + ' bytes')
if self.params.get('skip_download', False): if self.params.get('skip_download', False):
return True; return True;
if data_len is not None: if data_len is not None: