From 22dce72eab103d93e8f97432a31543a4f0b59926 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 9 Nov 2021 09:17:27 -0500 Subject: [PATCH] Minor bug fix: Ignore unreachable torrents --- qbit_manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qbit_manage.py b/qbit_manage.py index c0163c2..98d5362 100644 --- a/qbit_manage.py +++ b/qbit_manage.py @@ -383,7 +383,7 @@ def rem_unregistered(): f'\n - Status: {msg_up} ' f'\n - Tracker: {t_url} ' f'\n - Deleted .torrent AND content files.') - if (x.status == 4 and ('DOWN' not in msg_up or '(UNREACHABLE)' not in msg_up)): + if (x.status == 4 and 'DOWN' not in msg_up and 'UNREACHABLE' not in msg_up): pot_unr += (f'\n - Torrent: {torrent.name}') pot_unr += (f'\n - Message: {x.msg}') if ('UNREGISTERED' in msg_up or \ @@ -396,7 +396,7 @@ def rem_unregistered(): 'PACKS' in msg_up or \ 'REPACKED' in msg_up or \ 'PACK' in msg_up \ - ) and x.status == 4 and ('DOWN' not in msg_up or '(UNREACHABLE)' not in msg_up): + ) and x.status == 4 and 'DOWN' not in msg_up and 'UNREACHABLE' not in msg_up: logger.debug(f'Torrent counts: {t_count}') logger.debug(f'msg: {t_msg}') logger.debug(f'status: {t_status}')