1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-09 07:23:34 +08: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
Unverified
parent a13a1d170f
commit 660dfae585
+1 -1
View File
@@ -1038,7 +1038,7 @@ class FileDownloader(object):
return False
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):
return True;
if data_len is not None: