Skip to content

Commit

Permalink
Fix 'torrent add view' paused option
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-128 committed Jan 30, 2025
1 parent e4a81ad commit 0b008f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qBitControl/Classes/qBittorrentClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@ class qBittorrent {
}

if paused {
queryItems.append(URLQueryItem(name: "paused", value: "true"))
let version = qBittorrent.getVersion()
if(version.major == 5) { queryItems.append(URLQueryItem(name: "stopped", value: "true")) }
else { queryItems.append(URLQueryItem(name: "paused", value: "true")) }
}

if dlLimit > 0 {
Expand Down

0 comments on commit 0b008f9

Please sign in to comment.