From b879bbe13fc13781adfe3b76a86a7b0d7a1f19b9 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 22 Jul 2022 15:01:46 -0500 Subject: [PATCH] #4 moved tags and updated example --- config.json.example | 2 ++ qbit-maid.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.json.example b/config.json.example index e8e1b15..5f5689e 100644 --- a/config.json.example +++ b/config.json.example @@ -5,6 +5,8 @@ "password": "admin", "loglevel": "INFO", "logpath": "./qc.log", + "protected_tag": "ipt", + "non_protected_tag": "public", "age": 2419200, "use_pushover": true, "use_log": true, diff --git a/qbit-maid.py b/qbit-maid.py index ab315f6..8f6e9de 100644 --- a/qbit-maid.py +++ b/qbit-maid.py @@ -31,6 +31,8 @@ class Qbt: self.po_token = self.config["po_token"] self.logpath = self.config["logpath"] self.loglevel = self.config["loglevel"] + self.tracker_protected_tag = self.config["protected_tag"] + self.tracker_non_protected_tag = self.config["non_protected_tag"] # Calling log and notify functions torlog(self) tornotify(self) @@ -40,9 +42,6 @@ class Qbt: self.tracker_whitelist = load(f) self.tracker_protected_list = [] self.tracker_nonprotected_list = [] - # Setting values of the tags - self.tracker_protected_tag = 'ipt' - self.tracker_non_protected_tag = 'public' self.torrent_hash_delete_list = [] if self.use_log: self.tl.debug(self.tracker_whitelist) -- 2.45.2