@@ -1457,9 +1457,8 @@ class DeviantartOAuthAPI():
|
||||
self.log.info(
|
||||
"Register your own OAuth application and use its "
|
||||
"credentials to prevent this error: "
|
||||
"https://github.com/mikf/gallery-dl/blob/master/do"
|
||||
"cs/configuration.rst#extractordeviantartclient-id"
|
||||
"--client-secret")
|
||||
"https://gdl-org.github.io/docs/configuration.html"
|
||||
"#extractor-deviantart-client-id-client-secret")
|
||||
else:
|
||||
if log:
|
||||
self.log.error(msg)
|
||||
|
||||
@@ -487,14 +487,14 @@ class RedditAPI():
|
||||
|
||||
remaining = response.headers.get("x-ratelimit-remaining")
|
||||
if remaining and float(remaining) < 2:
|
||||
if self._warn_429:
|
||||
self._warn_429 = False
|
||||
self.log.warning("API rate limit exceeded")
|
||||
if self._warn_429 and self.client_id == self.CLIENT_ID:
|
||||
self.log.info(
|
||||
"Register your own OAuth application and use its "
|
||||
"credentials to prevent this error: "
|
||||
"https://github.com/mikf/gallery-dl/blob/master"
|
||||
"/docs/configuration.rst"
|
||||
"#extractorredditclient-id--user-agent")
|
||||
"https://gdl-org.github.io/docs/configuration.html"
|
||||
"#extractor-reddit-client-id-user-agent")
|
||||
self._warn_429 = False
|
||||
self.extractor.wait(
|
||||
seconds=response.headers["x-ratelimit-reset"])
|
||||
continue
|
||||
|
||||
@@ -447,9 +447,9 @@ class TumblrAPI(oauth.OAuth1API):
|
||||
if api_key == self.API_KEY:
|
||||
self.log.info(
|
||||
"Register your own OAuth application and use its "
|
||||
"credentials to prevent this error: https://githu"
|
||||
"b.com/mikf/gallery-dl/blob/master/docs/configurat"
|
||||
"ion.rst#extractortumblrapi-key--api-secret")
|
||||
"credentials to prevent this error: "
|
||||
"https://gdl-org.github.io/docs/configuration.html"
|
||||
"#extractor-tumblr-api-key-api-secret")
|
||||
|
||||
if self.extractor.config("ratelimit") == "wait":
|
||||
self.extractor.wait(seconds=reset)
|
||||
|
||||
Reference in New Issue
Block a user