1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

hds: don't output progressbar if --silent

This commit is contained in:
Olof Johansson 2014-05-03 17:57:53 +02:00
parent 24750ed1d6
commit a9ef1e6cfa

View File

@ -93,7 +93,7 @@ def download_hds(options, url):
eta = ETA(total)
while i <= total:
url = "%s/%sSeg1-Frag%s" % (baseurl, test["url"], i)
if options.output != "-":
if not options.silent and options.output != "-":
eta.update(i)
progressbar(total, i, ''.join(["ETA: ", str(eta)]))
data = get_http_data(url)