[F] Fix caching failure

This commit is contained in:
2026-03-10 19:48:46 -04:00
parent 9ddbb45327
commit 995d9ff4b5
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import urllib.request
import urllib.parse
from utils import with_disk_cache
@with_disk_cache('imdbapi_info')
@with_disk_cache('imdbapi_info', should_cache=lambda res: res.get("code") == "0")
def get_imdb_info(imdb_id: str) -> dict:
"""
Fetch IMDb info from imdbapi.dev as a fallback or replacement for M-Team.