Merge pull request #7 from jonbranan/feature-name-trunk
#4 moved tags and updated example
This commit is contained in:
commit
1519d064be
@ -5,6 +5,8 @@
|
|||||||
"password": "admin",
|
"password": "admin",
|
||||||
"loglevel": "INFO",
|
"loglevel": "INFO",
|
||||||
"logpath": "./qc.log",
|
"logpath": "./qc.log",
|
||||||
|
"protected_tag": "ipt",
|
||||||
|
"non_protected_tag": "public",
|
||||||
"age": 2419200,
|
"age": 2419200,
|
||||||
"use_pushover": true,
|
"use_pushover": true,
|
||||||
"use_log": true,
|
"use_log": true,
|
||||||
|
@ -31,6 +31,8 @@ class Qbt:
|
|||||||
self.po_token = self.config["po_token"]
|
self.po_token = self.config["po_token"]
|
||||||
self.logpath = self.config["logpath"]
|
self.logpath = self.config["logpath"]
|
||||||
self.loglevel = self.config["loglevel"]
|
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
|
# Calling log and notify functions
|
||||||
torlog(self)
|
torlog(self)
|
||||||
tornotify(self)
|
tornotify(self)
|
||||||
@ -40,9 +42,6 @@ class Qbt:
|
|||||||
self.tracker_whitelist = load(f)
|
self.tracker_whitelist = load(f)
|
||||||
self.tracker_protected_list = []
|
self.tracker_protected_list = []
|
||||||
self.tracker_nonprotected_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 = []
|
self.torrent_hash_delete_list = []
|
||||||
if self.use_log:
|
if self.use_log:
|
||||||
self.tl.debug(self.tracker_whitelist)
|
self.tl.debug(self.tracker_whitelist)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user