summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reddit.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/reddit.py')
-rw-r--r--gallery_dl/extractor/reddit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py
index feb6d1f..2ef0f9f 100644
--- a/gallery_dl/extractor/reddit.py
+++ b/gallery_dl/extractor/reddit.py
@@ -159,7 +159,7 @@ class RedditExtractor(Extractor):
data = meta[item["media_id"]]
if data["status"] != "valid" or "s" not in data:
self.log.warning(
- "gallery %s: skipping item %s ('status: %s')",
+ "gallery %s: skipping item %s (status: %s)",
submission["id"], item["media_id"], data.get("status"))
continue
src = data["s"]
@@ -531,7 +531,7 @@ class RedditAPI():
return util.bdecode(sid, "0123456789abcdefghijklmnopqrstuvwxyz")
-@cache(maxage=100*365*24*3600, keyarg=0)
+@cache(maxage=36500*86400, keyarg=0)
def _refresh_token_cache(token):
if token and token[0] == "#":
return None