Category whitelist #10

Merged
jonbranan merged 4 commits from category-whitelist into main 2022-07-23 01:10:24 -05:00
Showing only changes of commit 31c953d698 - Show all commits

View File

@ -14,6 +14,8 @@ class Qbt:
# Open the config. Needs a json file with the data in config.json.example # Open the config. Needs a json file with the data in config.json.example
c = open('./config.json') c = open('./config.json')
self.config = load(c) self.config = load(c)
w = open('./config.json')
self.cat_whitelist = load(w)
# Create the api object # Create the api object
self.qbt_client = qbittorrentapi.Client( self.qbt_client = qbittorrentapi.Client(
host=self.config["host"], host=self.config["host"],
@ -69,7 +71,7 @@ class Qbt:
printprocessor(self) printprocessor(self)
if self.use_pushover: if self.use_pushover:
tornotifysummary(self) tornotifysummary(self)
#tordelete(self) tordelete(self)
# Run # Run
if __name__== "__main__": if __name__== "__main__":