server: qBittorrent: use "contentLayout" for isBasePath

Bug: qbittorrent/qBittorrent#13955
This commit is contained in:
Jesse Chan
2020-12-27 21:50:10 +08:00
parent f43ec41014
commit 01edfec73a
2 changed files with 4 additions and 0 deletions
@@ -62,6 +62,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
tags: tags.join(','),
paused: !start,
root_folder: !isBasePath,
contentLayout: isBasePath ? 'NoSubfolder' : undefined,
sequentialDownload: isSequential,
skip_checking: isCompleted,
})
@@ -87,6 +88,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
tags: tags.join(','),
paused: !start,
root_folder: !isBasePath,
contentLayout: isBasePath ? 'NoSubfolder' : undefined,
sequentialDownload: isSequential,
skip_checking: isCompleted,
})
@@ -125,6 +125,8 @@ export interface QBittorrentTorrentsAddOptions {
paused?: boolean;
// Create the root folder. Possible values are true, false, unset (default)
root_folder?: boolean;
// Content layout mode, replaces root_folder
contentLayout?: 'Original' | 'Subfolder' | 'NoSubfolder';
// Rename torrent
rename?: string;
// Set torrent upload speed limit. Unit in bytes/second