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