Skip to content

Commit 748bca5

Browse files
authored
Fixed broken torrent parsing and starting on new qbit version
1 parent f44539f commit 748bca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: addons/qbit_torrent_unchecker/qbit_torrent_unchecker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from komga_cover_extractor import *
2020

2121
# state filter
22-
target_state = "pausedDL"
22+
target_states = ["pausedDL", "stoppedDL"]
2323

2424
# Torrents actively being processed
2525
processing_torrents = []
@@ -182,7 +182,7 @@ def filter_torrents(torrents):
182182
torrent
183183
for torrent in torrents
184184
if torrent.category == qbittorrent_target_category
185-
and torrent.state == target_state
185+
and torrent.state in target_states
186186
and torrent.hash not in processing_torrents
187187
]
188188

@@ -414,7 +414,7 @@ def uncheck_files(torrent, file, qb):
414414

415415
# Starts the torrent
416416
def start_torrent(torrent):
417-
torrent.resume()
417+
torrent.start()
418418

419419

420420
# Deletes the torrent

0 commit comments

Comments
 (0)