mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-27 06:29:04 +08:00
Bug fix (remove unregistered torrents exception)
This commit is contained in:
parent
6036e2edc1
commit
e92d6f34f9
2 changed files with 3 additions and 2 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
3.1.0
|
3.1.1
|
||||||
|
|
@ -77,8 +77,9 @@ class Qbt:
|
||||||
if x.url.startswith('http'):
|
if x.url.startswith('http'):
|
||||||
status = x.status
|
status = x.status
|
||||||
msg = x.msg.upper()
|
msg = x.msg.upper()
|
||||||
|
exception = ["DOWN","UNREACHABLE","BAD GATEWAY"]
|
||||||
#Add any potential unregistered torrents to a list
|
#Add any potential unregistered torrents to a list
|
||||||
if x.status == 4 and 'DOWN' not in msg and 'UNREACHABLE' not in msg:
|
if x.status == 4 and all(x not in msg for x in exception):
|
||||||
t_obj_unreg.append(torrent)
|
t_obj_unreg.append(torrent)
|
||||||
if x.status == 2:
|
if x.status == 2:
|
||||||
t_obj_valid.append(torrent)
|
t_obj_valid.append(torrent)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue