Added .strip() to episode title in case title is (deliberately) empty
This commit is contained in:
parent
a87ae1f1ac
commit
d87ce8001f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue