mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-10 15:14:36 +08:00
Bug fix in #359
This commit is contained in:
parent
3dfe8445ff
commit
acb23f73ba
3 changed files with 6 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
4.0.9-develop5
|
||||
4.0.9-develop6
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from datetime import timedelta
|
||||
|
||||
from modules import util
|
||||
from modules.util import remove_extension
|
||||
|
||||
logger = util.logger
|
||||
|
||||
|
@ -105,7 +106,7 @@ class ReCheck:
|
|||
# Recheck
|
||||
elif (
|
||||
torrent.progress == 0
|
||||
and self.qbt.torrentinfo[t_name]["is_complete"]
|
||||
and self.qbt.torrentinfo[remove_extension(t_name)]["is_complete"]
|
||||
and not torrent.state_enum.is_checking
|
||||
):
|
||||
self.stats_rechecked += 1
|
||||
|
|
|
@ -97,7 +97,7 @@ class RemoveUnregistered:
|
|||
self.notify_attr_unreg = [] # List of single torrent attributes to send to notifiarr
|
||||
|
||||
for torrent in self.qbt.torrentissue:
|
||||
self.t_name = torrent.name
|
||||
self.t_name = remove_extension(torrent.name)
|
||||
self.t_cat = self.qbt.torrentinfo[self.t_name]["Category"]
|
||||
self.t_msg = self.qbt.torrentinfo[self.t_name]["msg"]
|
||||
self.t_status = self.qbt.torrentinfo[self.t_name]["status"]
|
||||
|
@ -210,7 +210,7 @@ class RemoveUnregistered:
|
|||
"torrent_tracker": tracker["url"],
|
||||
"notifiarr_indexer": tracker["notifiarr"],
|
||||
}
|
||||
if self.qbt.torrentinfo[remove_extension(self.t_name)]["count"] > 1:
|
||||
if self.qbt.torrentinfo[self.t_name]["count"] > 1:
|
||||
# Checks if any of the original torrents are working
|
||||
if "" in self.t_msg or 2 in self.t_status:
|
||||
attr["torrents_deleted_and_contents"] = False
|
||||
|
@ -233,4 +233,4 @@ class RemoveUnregistered:
|
|||
attr["body"] = "\n".join(body)
|
||||
self.torrents_updated_unreg.append(self.t_name)
|
||||
self.notify_attr_unreg.append(attr)
|
||||
self.qbt.torrentinfo[remove_extension(self.t_name)]["count"] -= 1
|
||||
self.qbt.torrentinfo[self.t_name]["count"] -= 1
|
||||
|
|
Loading…
Add table
Reference in a new issue