From 665358df4c58ab5d5ae9f0de6068a93237c747d8 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 7 Apr 2021 20:17:12 -0400 Subject: [PATCH] fix for #184 --- modules/plex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 5d7b0d61..47be477a 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -685,8 +685,8 @@ class PlexAPI: match = re.search("[Ss]\\d+[Ee]\\d+", episode_str) if match: output = match.group(0)[1:].split("E" if "E" in match.group(0) else "e") - episode_id = int(output[0]) - season_id = int(output[1]) + season_id = int(output[0]) + episode_id = int(output[1]) logger.info(f"Updating episode S{episode_id}E{season_id} of {mapping_name}...") try: episode = item.episode(season=season_id, episode=episode_id) except NotFound: logger.error(f"Metadata Error: episode {episode_id} of season {season_id} not found")