diff --git a/app/modules/alist2strm/alist2strm.py b/app/modules/alist2strm/alist2strm.py index 4ff0882..70ebfdf 100644 --- a/app/modules/alist2strm/alist2strm.py +++ b/app/modules/alist2strm/alist2strm.py @@ -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