|
|
@ -786,10 +786,8 @@ class PlexAPI:
|
|
|
|
match = re.search("[Ss]\\d+[Ee]\\d+", episode_str)
|
|
|
|
match = re.search("[Ss]\\d+[Ee]\\d+", episode_str)
|
|
|
|
if match:
|
|
|
|
if match:
|
|
|
|
output = match.group(0)[1:].split("E" if "E" in match.group(0) else "e")
|
|
|
|
output = match.group(0)[1:].split("E" if "E" in match.group(0) else "e")
|
|
|
|
season_str = output[0]
|
|
|
|
season_id = int(output[0])
|
|
|
|
episode_str = output[1]
|
|
|
|
episode_id = int(output[1])
|
|
|
|
season_id = int(season_str)
|
|
|
|
|
|
|
|
episode_id = int(episode_str)
|
|
|
|
|
|
|
|
logger.info(f"Updating episode S{episode_id}E{season_id} of {mapping_name}...")
|
|
|
|
logger.info(f"Updating episode S{episode_id}E{season_id} of {mapping_name}...")
|
|
|
|
try: episode = item.episode(season=season_id, episode=episode_id)
|
|
|
|
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")
|
|
|
|
except NotFound: logger.error(f"Metadata Error: episode {episode_id} of season {season_id} not found")
|
|
|
|