[54] fix episode cache again

This commit is contained in:
meisnate12 2024-04-02 11:15:38 -04:00
parent 7f845a822c
commit 5d9d33911a
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
1.20.0-develop53
1.20.0-develop54

View file

@ -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
))