From 36ead4554649e3dee27f69764905eb1f50fc606a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 1 Jul 2022 20:50:38 +0200 Subject: [PATCH] [itaku] fix caching bug (#1842) ItakuApi.user() would always return the first user it was called with, regardless of its 'username' argument. --- gallery_dl/extractor/itaku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/itaku.py b/gallery_dl/extractor/itaku.py index 70e47c21..7a0d6687 100644 --- a/gallery_dl/extractor/itaku.py +++ b/gallery_dl/extractor/itaku.py @@ -163,7 +163,7 @@ class ItakuAPI(): endpoint = "/galleries/images/{}/".format(image_id) return self._call(endpoint) - @memcache() + @memcache(keyarg=1) def user(self, username): return self._call("/user_profiles/{}/".format(username))