From 15b8f5e50edf8f3a2cffb7d8f4adb75adce725f2 Mon Sep 17 00:00:00 2001 From: Jake Lunn Date: Wed, 13 Sep 2023 09:49:49 -0500 Subject: [PATCH] fixed issue with strings not getting replaced --- modules/local_media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/local_media.py b/modules/local_media.py index a336218..8455cd2 100644 --- a/modules/local_media.py +++ b/modules/local_media.py @@ -97,7 +97,7 @@ def __extract_group_value_from_match(match, group_name, optional: bool = False) ) raise FileMatchException(f"Could not find group {group_name} in match") group_str = str(group) - group_str.strip() + group_str = group_str.strip() return group_str @@ -123,7 +123,7 @@ def get_episode(target_dir: str, arcs, file: FileInfo) -> Episode: return None file_arc = __extract_group_value_from_match(data, "Arc") - file_arc.replace( + file_arc = file_arc.replace( "Whiskey", "Whisky" ) # Fix spelling difference in file name from onepace.net data :)