summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-05-28 13:48:09 -0400
committermorpheus65535 <[email protected]>2021-05-28 13:48:09 -0400
commitb3917c58a281a630d2abf63a00a9ca9a98806a90 (patch)
tree41cd13415ecab97ec2ace7d37bc638e33e34891f
parent8e6275513b268d12f1dcab127c656c5c93a3921a (diff)
downloadbazarr-b3917c58a281a630d2abf63a00a9ca9a98806a90.tar.gz
bazarr-b3917c58a281a630d2abf63a00a9ca9a98806a90.zip
no log: Fixed some typo
-rw-r--r--bazarr/get_episodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/get_episodes.py b/bazarr/get_episodes.py
index 301846677..a6befbff0 100644
--- a/bazarr/get_episodes.py
+++ b/bazarr/get_episodes.py
@@ -178,12 +178,12 @@ def sync_one_episode(episode_id):
TableEpisodes.delete().where(TableEpisodes.sonarrEpisodeId == episode_id).execute()
event_stream(type='episode', action='delete', payload=int(episode_id))
logging.debug('BAZARR deleted this episode from the database:{}'.format(path_mappings.path_replace(
- existing_episode['path)'])))
+ existing_episode['path'])))
return
# Update existing episodes in DB
elif episode and existing_episode:
- TableEpisodes.update(episode).where(TableEpisodes.sonarrEpisodeId == episode.sonarrEpisodeId).execute()
+ TableEpisodes.update(episode).where(TableEpisodes.sonarrEpisodeId == episode_id).execute()
event_stream(type='episode', action='update', payload=int(episode_id))
logging.debug('BAZARR updated this episode into the database:{}'.format(path_mappings.path_replace(
episode.path)))