diff --git a/tmdb.py b/tmdb.py index d15aefc..a0993ce 100644 --- a/tmdb.py +++ b/tmdb.py @@ -100,7 +100,7 @@ def lookup(arte_id: str, title: str, subtitle: str) -> dict | None: with sqlite3.connect(_DB) as conn: conn.execute( - "INSERT OR REPLACE INTO tmdb_cache VALUES (?,?,?,?,?,?)", + "INSERT OR REPLACE INTO tmdb_cache (arte_id, tmdb_id, poster, backdrop, year, cached_at) VALUES (?,?,?,?,?,?)", (arte_id, tmdb_id, poster, backdrop, year, datetime.now().isoformat()), )