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

hds: support for silent

This commit is contained in:
Johan Andersson 2015-10-25 18:23:39 +01:00
parent 626bef92d5
commit 6b240e2f24

View File

@ -111,7 +111,7 @@ class HDS(VideoRetriever):
eta = ETA(total)
while i <= total:
url = "%s/%sSeg1-Frag%s?%s" % (baseurl, self.url, start, querystring)
if self.options.output != "-":
if self.options.output != "-" or not self.options.silent:
eta.update(i)
progressbar(total, i, ''.join(["ETA: ", str(eta)]))
data = self.http.request("get", url, cookies=cookies)