Skip to content

Commit

Permalink
fix(Alist2Strm): __get_local_path 函数中应替换掉 Alist.path 路径中的 self.source…
Browse files Browse the repository at this point in the history
…_dir 作为相对路径
  • Loading branch information
Akimio521 committed Nov 3, 2024
1 parent 0f1743b commit c67065d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/alist2strm/alist2strm.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __get_local_path(self, path: AlistPath) -> Path:
if self.flatten_mode:
local_path = self.target_dir / path.name
else:
relative_path = path.path
relative_path = path.path.replace(self.source_dir, "", 1)
if relative_path.startswith("/"):
relative_path = relative_path[1:]
local_path = self.target_dir / relative_path
Expand Down

0 comments on commit c67065d

Please sign in to comment.