mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
server: qBittorrent: forward cookies to qBittorrent
This commit is contained in:
@@ -59,6 +59,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
|
||||
|
||||
async addTorrentsByURL({
|
||||
urls,
|
||||
cookies,
|
||||
destination,
|
||||
tags,
|
||||
isBasePath,
|
||||
@@ -66,6 +67,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
|
||||
}: Required<AddTorrentByURLOptions>): Promise<void> {
|
||||
return this.clientRequestManager
|
||||
.torrentsAddURLs(urls, {
|
||||
cookie: cookies != null ? Object.values(cookies)[0][0] : undefined,
|
||||
savepath: destination,
|
||||
tags: tags.join(','),
|
||||
paused: !start,
|
||||
|
||||
Reference in New Issue
Block a user