Bug fix (remove unregistered torrents exception)

This commit is contained in:
bobokun 2021-12-19 14:39:16 -05:00
parent 6036e2edc1
commit e92d6f34f9
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1 @@
3.1.0
3.1.1

View file

@ -77,8 +77,9 @@ class Qbt:
if x.url.startswith('http'):
status = x.status
msg = x.msg.upper()
exception = ["DOWN","UNREACHABLE","BAD GATEWAY"]
#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)
if x.status == 2:
t_obj_valid.append(torrent)