Skip to content

Commit

Permalink
修复季数获取, 兼容格式 season1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Nov 21, 2022
1 parent 5c35fde commit d4c7405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EpisodeReName.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def get_season(parent_folder_name):
return '0'

try:
if 'season ' in parent_folder_name.lower():
s = str(int(parent_folder_name.lower().replace('season ', '').strip()))
if 'season' in parent_folder_name.lower():
s = str(int(parent_folder_name.lower().replace('season', '').strip()))
season = s.zfill(2)
elif parent_folder_name.lower()[0] == 's':
season = str(int(parent_folder_name[1:])).strip().zfill(2)
Expand Down

1 comment on commit d4c7405

@Nriver
Copy link
Owner Author

@Nriver Nriver commented on d4c7405 Nov 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #17

Please sign in to comment.