server: qBittorrent: forward cookies to qBittorrent

This commit is contained in:
Jesse Chan
2020-12-05 22:36:21 +08:00
parent 00f113b379
commit 1e81931461
@@ -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,