1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 12:42:29 +01:00

[common] update Extractor.wait() message format

This commit is contained in:
Mike Fährmann 2024-04-16 17:51:14 +02:00
parent 9e5d65fbf3
commit 68f4208251
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -220,7 +220,7 @@ class Extractor():
raise exception.HttpError(msg, response)
def wait(self, seconds=None, until=None, adjust=1.0,
reason="rate limit reset"):
reason="rate limit"):
now = time.time()
if seconds:
@ -243,7 +243,7 @@ class Extractor():
if reason:
t = datetime.datetime.fromtimestamp(until).time()
isotime = "{:02}:{:02}:{:02}".format(t.hour, t.minute, t.second)
self.log.info("Waiting until %s for %s.", isotime, reason)
self.log.info("Waiting until %s (%s)", isotime, reason)
time.sleep(seconds)
def sleep(self, seconds, reason):