From a92ee5de67bb5f8265f6c748da2c54a95c7d8d7e Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 20 Mar 2024 13:24:22 -0400 Subject: [PATCH] [43] fix cache table --- VERSION | 2 +- modules/cache.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 754e9491..c9d95cec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.0-develop42 +1.20.0-develop43 diff --git a/modules/cache.py b/modules/cache.py index 210f2c0a..ee890fae 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -669,7 +669,7 @@ class Cache: with sqlite3.connect(self.cache_path) as connection: connection.row_factory = sqlite3.Row with closing(connection.cursor()) as cursor: - cursor.execute("SELECT * FROM tmdb_show_data WHERE tmdb_id = ?", (tmdb_id,)) + cursor.execute("SELECT * FROM tmdb_show_data2 WHERE tmdb_id = ?", (tmdb_id,)) row = cursor.fetchone() if row: tmdb_dict["title"] = row["title"] if row["title"] else "" @@ -703,8 +703,8 @@ class Cache: with sqlite3.connect(self.cache_path) as connection: connection.row_factory = sqlite3.Row with closing(connection.cursor()) as cursor: - cursor.execute("INSERT OR IGNORE INTO tmdb_show_data(tmdb_id) VALUES(?)", (obj.tmdb_id,)) - update_sql = "UPDATE tmdb_show_data SET title = ?, original_title = ?, studio = ?, overview = ?, tagline = ?, imdb_id = ?, " \ + cursor.execute("INSERT OR IGNORE INTO tmdb_show_data2(tmdb_id) VALUES(?)", (obj.tmdb_id,)) + update_sql = "UPDATE tmdb_show_data2 SET title = ?, original_title = ?, studio = ?, overview = ?, tagline = ?, imdb_id = ?, " \ "poster_url = ?, backdrop_url = ?, vote_count = ?, vote_average = ?, language_iso = ?, " \ "language_name = ?, genres = ?, keywords = ?, first_air_date = ?, last_air_date = ?, status = ?, " \ "type = ?, tvdb_id = ?, countries = ?, seasons = ?, expiration_date = ? WHERE tmdb_id = ?"