1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

http: support for silent

This commit is contained in:
Johan Andersson 2015-10-25 18:23:16 +01:00
parent f7442661f1
commit 78d962d05e

View File

@ -29,7 +29,7 @@ class HTTP(VideoRetriever):
for i in data.iter_content(8192):
bytes_so_far += len(i)
file_d.write(i)
if self.options.output != "-":
if self.options.output != "-" or not self.options.silent:
now = time.time()
if lastprogress + 1 < now:
lastprogress = now