mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-10 16:30:54 +08:00
bug fix beyondHD
This commit is contained in:
parent
d1c26fffa6
commit
806ff7ef11
1 changed files with 3 additions and 3 deletions
|
|
@ -895,11 +895,11 @@ class Qbt:
|
||||||
# Check for unregistered torrents using BHD API if the tracker is BHD
|
# Check for unregistered torrents using BHD API if the tracker is BHD
|
||||||
if (
|
if (
|
||||||
"tracker.beyond-hd.me" in tracker["url"]
|
"tracker.beyond-hd.me" in tracker["url"]
|
||||||
and self.config.BeyondHD is not None
|
and self.config.beyond_hd is not None
|
||||||
and not list_in_text(msg_up, ignore_msgs)
|
and not list_in_text(msg_up, ignore_msgs)
|
||||||
):
|
):
|
||||||
json = {"info_hash": torrent.hash}
|
json = {"info_hash": torrent.hash}
|
||||||
response = self.config.BeyondHD.search(json)
|
response = self.config.beyond_hd.search(json)
|
||||||
if response["total_results"] == 0:
|
if response["total_results"] == 0:
|
||||||
del_unregistered()
|
del_unregistered()
|
||||||
break
|
break
|
||||||
|
|
@ -912,7 +912,7 @@ class Qbt:
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logger.stacktrace()
|
logger.stacktrace()
|
||||||
self.config.notify(ex, "Remove Unregistered Torrents", False)
|
self.config.notify(ex, "Remove Unregistered Torrents", False)
|
||||||
logger.error("Unknown Error: {ex}")
|
logger.error(f"Remove Unregistered Torrents Error: {ex}")
|
||||||
if cfg_rem_unregistered:
|
if cfg_rem_unregistered:
|
||||||
if del_tor >= 1 or del_tor_cont >= 1:
|
if del_tor >= 1 or del_tor_cont >= 1:
|
||||||
if del_tor >= 1:
|
if del_tor >= 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue