Skip to content

Commit

Permalink
🐛 fix: 路径写法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
jqtmviyu committed May 3, 2024
1 parent 56e956a commit c361edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/module/manager/renamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def rename_collection(
)
if ep:
new_path = self.gen_path(ep, bangumi_name, method=method)
media_path = f"Season {season}/{media_path.split("/", 1)[1]}"
media_path = f"Season {season}" + media_path.split("/", 1)[1]
if media_path != f"Season {season}/{new_path}":
renamed = self.rename_torrent_file(
_hash=_hash, old_path=media_path, new_path=new_path
Expand Down Expand Up @@ -131,7 +131,7 @@ def rename_subtitles(
)
if sub:
new_path = self.gen_path(sub, bangumi_name, method=method)
subtitle_path = f"Season {season}/{subtitle_path.split("/", 1)[1]}"
subtitle_path = f"Season {season}" + subtitle_path.split("/", 1)[1]
if subtitle_path != f"Season {season}/{new_path}":
renamed = self.rename_torrent_file(
_hash=_hash, old_path=subtitle_path, new_path=new_path
Expand Down

0 comments on commit c361edf

Please sign in to comment.