From dbc465f6e5185710795176c9856d6b083ec6e8bd Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:11:36 +0800 Subject: [PATCH] fix(cache): update tmdb match_web base_wait to 5 for finer control --- app/modules/themoviedb/tmdbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/themoviedb/tmdbapi.py b/app/modules/themoviedb/tmdbapi.py index 9479c987..2c8c4c86 100644 --- a/app/modules/themoviedb/tmdbapi.py +++ b/app/modules/themoviedb/tmdbapi.py @@ -494,7 +494,7 @@ class TmdbApi: return ret_info @cached(maxsize=settings.CACHE_CONF["tmdb"], ttl=settings.CACHE_CONF["meta"]) - @rate_limit_exponential(source="match_tmdb_web", max_wait=1800, enable_logging=True) + @rate_limit_exponential(source="match_tmdb_web", base_wait=5, max_wait=1800, enable_logging=True) def match_web(self, name: str, mtype: MediaType) -> Optional[dict]: """ 搜索TMDB网站,直接抓取结果,结果只有一条时才返回