From 9164c73f39d2432f378d966aa11beef1f7f62090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 28 Oct 2019 06:48:20 -0400 Subject: [PATCH] WIP --- bazarr/get_episodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/get_episodes.py b/bazarr/get_episodes.py index 51f4ad5e1..7366b9d8e 100644 --- a/bazarr/get_episodes.py +++ b/bazarr/get_episodes.py @@ -136,8 +136,8 @@ def sync_episodes(): for updated_episode in episodes_to_update_list: query = dict_converter.convert(updated_episode) - database.execute('''UPDATE table_shows SET ''' + query.keys_update + ''' WHERE sonarrSeriesId = ?''', - query.values + (updated_episode['sonarrSeriesId'],)) + database.execute('''UPDATE table_episodes SET ''' + query.keys_update + ''' WHERE sonarrEpisodeId = ?''', + query.values + (updated_episode['sonarrEpisodeId'],)) altered_episodes.append([updated_episode['sonarrEpisodeId'], updated_episode['path'], updated_episode['sonarrSeriesId']])