mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
server: qBittorrent: use "contentLayout" for isBasePath
Bug: qbittorrent/qBittorrent#13955
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user