fix: normalize downloader return paths

Fixes #5773
This commit is contained in:
jxxghp
2026-05-15 18:15:42 +08:00
parent 51229204c9
commit 1f49f9b454
5 changed files with 428 additions and 18 deletions

View File

@@ -319,7 +319,7 @@ class RtorrentModule(_ModuleBase, _DownloaderBase[Rtorrent]):
TransferTorrent(
downloader=name,
title=torrent.get("name"),
path=torrent_path,
path=Path(self.normalize_return_path(torrent_path, name)),
hash=torrent.get("hash"),
size=torrent.get("total_size"),
tags=torrent.get("tags"),
@@ -355,7 +355,7 @@ class RtorrentModule(_ModuleBase, _DownloaderBase[Rtorrent]):
TransferTorrent(
downloader=name,
title=torrent.get("name"),
path=torrent_path,
path=Path(self.normalize_return_path(torrent_path, name)),
hash=torrent.get("hash"),
tags=torrent.get("tags"),
)