From 18f815624d5ab5a1bac52b639c1fbb1e0efa032b Mon Sep 17 00:00:00 2001 From: Feramance Date: Tue, 9 Jul 2024 08:08:36 +0200 Subject: [PATCH 1/3] check for qbit disabled --- qBitrr/arss.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index 0ad16f1c..c0e1d929 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -508,14 +508,15 @@ def __init__( else: self.search_api_command = "MissingEpisodeSearch" - self.manager.qbit_manager.client.torrents_create_tags( - [ - "qBitrr-allowed_seeding", - "qBitrr-ignored", - "qBitrr-imported", - "qBitrr-allowed_stalled", - ] - ) + if not QBIT_DISABLED: + self.manager.qbit_manager.client.torrents_create_tags( + [ + "qBitrr-allowed_seeding", + "qBitrr-ignored", + "qBitrr-imported", + "qBitrr-allowed_stalled", + ] + ) self.search_setup_completed = False self.model_file: EpisodeFilesModel | MoviesFilesModel = None self.series_file_model: SeriesFilesModel = None From af01f5b1edc0f3a042a1f9f686fc859b386dd199 Mon Sep 17 00:00:00 2001 From: Feramance <38938175+Feramance@users.noreply.github.com> Date: Tue, 9 Jul 2024 19:10:24 +0200 Subject: [PATCH 2/3] Update arss.py Signed-off-by: Feramance <38938175+Feramance@users.noreply.github.com> --- qBitrr/arss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index c0e1d929..cce1faa5 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -514,7 +514,7 @@ def __init__( "qBitrr-allowed_seeding", "qBitrr-ignored", "qBitrr-imported", - "qBitrr-allowed_stalled", + "qBitrr-allowed_stalled" ] ) self.search_setup_completed = False From 507389ac18981ec51f2fe1c149557385c41c8c81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:11:12 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- qBitrr/arss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qBitrr/arss.py b/qBitrr/arss.py index cce1faa5..c0e1d929 100755 --- a/qBitrr/arss.py +++ b/qBitrr/arss.py @@ -514,7 +514,7 @@ def __init__( "qBitrr-allowed_seeding", "qBitrr-ignored", "qBitrr-imported", - "qBitrr-allowed_stalled" + "qBitrr-allowed_stalled", ] ) self.search_setup_completed = False