From 5d9d33911a2a36e27733a5d104c88928f7a2844c Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 2 Apr 2024 11:15:38 -0400 Subject: [PATCH] [54] fix episode cache again --- VERSION | 2 +- modules/cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 04f34525..5df8cbdf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.20.0-develop53 +1.20.0-develop54 diff --git a/modules/cache.py b/modules/cache.py index 7a0cf9fa..34d886c9 100644 --- a/modules/cache.py +++ b/modules/cache.py @@ -772,7 +772,7 @@ class Cache: "vote_count = ?, vote_average = ?, imdb_id = ?, tvdb_id = ?, " \ "expiration_date = ? WHERE tmdb_id = ? AND season_number = ? AND episode_number = ?" cursor.execute(update_sql, ( - obj.title, obj.air_date.strftime("%Y-%m-%d"), obj.overview, obj.still_url, + obj.title, obj.air_date.strftime("%Y-%m-%d") if obj.air_date else None, obj.overview, obj.still_url, obj.vote_count, obj.vote_average, obj.imdb_id, obj.tvdb_id, expiration_date.strftime("%Y-%m-%d"), obj.tmdb_id, obj.season_number, obj.episode_number ))