fix: Only add path separator in specific cases
This commit is contained in:
parent
56934e3183
commit
d6305c26f8
1 changed files with 7 additions and 1 deletions
|
|
@ -208,7 +208,13 @@ public class QBittorrent(ILogger<QBittorrent> logger, Settings settings, Authent
|
||||||
var torrentPath = downloadPath;
|
var torrentPath = downloadPath;
|
||||||
if (!String.IsNullOrWhiteSpace(torrent.RdName))
|
if (!String.IsNullOrWhiteSpace(torrent.RdName))
|
||||||
{
|
{
|
||||||
torrentPath = Path.Combine(downloadPath, torrent.RdName) + Path.DirectorySeparatorChar;
|
torrentPath = Path.Combine(downloadPath, torrent.RdName);
|
||||||
|
|
||||||
|
// Alldebrid stores single file torrents at the root folder.
|
||||||
|
if (torrent.ClientKind != Torrent.TorrentClientKind.AllDebrid || torrent.Files.Count > 1)
|
||||||
|
{
|
||||||
|
torrentPath += Path.DirectorySeparatorChar;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Int64 bytesDone = 0;
|
Int64 bytesDone = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue