From 35298fc6d90f9af7d0bbde854844afe9351e768c Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sun, 18 Dec 2022 03:30:28 -0500 Subject: [PATCH] Fix unnecessary not --- nzb2media/utils/torrent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nzb2media/utils/torrent.py b/nzb2media/utils/torrent.py index 794b2c30..4897ef03 100644 --- a/nzb2media/utils/torrent.py +++ b/nzb2media/utils/torrent.py @@ -23,7 +23,7 @@ torrent_clients = { def create_torrent_class(client_agent): - if not nzb2media.APP_NAME == 'TorrentToMedia.py': + if nzb2media.APP_NAME != 'TorrentToMedia.py': return # Skip loading Torrent for NZBs. try: @@ -53,7 +53,7 @@ def pause_torrent(client_agent, input_hash, input_id, input_name): def resume_torrent(client_agent, input_hash, input_id, input_name): - if not nzb2media.TORRENT_RESUME == 1: + if nzb2media.TORRENT_RESUME != 1: return log.debug(f'Starting torrent {input_name} in {client_agent}') try: