Added .strip() to episode title in case title is (deliberately) empty

This commit is contained in:
Thord Johansson 2024-02-28 11:16:23 +01:00
parent a87ae1f1ac
commit d87ce8001f

View file

@ -37,7 +37,7 @@ def main():
episode_name = f" - {episode_name_group}" if episode_name_group else ""
# Create the new filename in the desired format
new_filename = f"{show_title} S{season_number}E{episode_number}{episode_name}.avi"
new_filename = f"{show_title} S{season_number}E{episode_number}{episode_name}.avi".strip()
# Preview the changes
preview_rename(filename, new_filename)