Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Jul 26, 2023
1 parent 02c0119 commit e0861d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EpisodeReName.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,15 @@ def format_path(file_path):
return file_path.replace('//', '/').replace('/', '\\')
return file_path.replace('\\', '/').replace('//', '/')


def get_absolute_path(file_path):
# 获取绝对路径
if file_path.startswith(r'\\'):
# samba 路径特殊处理
return file_path.replace('\\', '/')
else:
return os.path.abspath(target_path.replace('\\', '/'))
return os.path.abspath(file_path.replace('\\', '/'))


def get_season_cascaded(full_path):
# 逐级向上解析目录季数
Expand Down

0 comments on commit e0861d0

Please sign in to comment.