Skip to content

Commit

Permalink
feat: strip extra zero from directory of seasons
Browse files Browse the repository at this point in the history
  • Loading branch information
3h4x committed Jul 21, 2022
1 parent b19604f commit f0a218e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rename_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def rename_series(ctx, path, force):
file_name = removeIllegal(file_name).strip()
Final = f"SE{season}EP{episode} - {file_name}{extension}"

path_output = os.path.join(file_name, f"Season {season}") # type: ignore
path_output = os.path.join(file_name, f"Season {int(season)}") # type: ignore

subprocess.check_call(f'mkdir -p "{path_output}"', cwd=path, shell=True)

Expand Down

0 comments on commit f0a218e

Please sign in to comment.