Skip to content

Commit

Permalink
Merge pull request #29 from StuffAnThings/develop
Browse files Browse the repository at this point in the history
Minor bug fix: Ignore unreachable torrents
  • Loading branch information
bobokun authored Nov 9, 2021
2 parents c8b6183 + 22dce72 commit 34bf497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qbit_manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}')
Expand Down

0 comments on commit 34bf497

Please sign in to comment.