diff --git a/README.md b/README.md index 04dfa37..1f67568 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # qbit-maid +Warning: This application removes torrents that aren't downloading and that aren't from iptorrents. Age in the config.json only controls the age for torrents from iptorrents. + The objective is to filter torrents based on the following criteria: - tracker domain name - age @@ -16,4 +18,21 @@ The third file shall contain logging and email communication. qlogging.py The fourth file shall be logic to process torrents. -qprocess.py \ No newline at end of file +qprocess.py + +You will need a config.json in the root directory. + +It should look something like this: +{ + "host": "192.168.1.1", + "port": 8080, + "username": "admin", + "password": "admin", + "loglevel": "INFO", + "logpath": "./qc.log", + "age": 2419200 +} + +loglevel is what log messages are written to the log file. It only accepts INFO or DEBUG. + +Age is a number in seconds for how long we keep torrents from IPTORRENTS. \ No newline at end of file diff --git a/config.json.example b/config.json.example index fdb8198..6661697 100644 --- a/config.json.example +++ b/config.json.example @@ -5,5 +5,5 @@ "password": "admin", "loglevel": "INFO", "logpath": "./qc.log", - "age": 2630000 + "age": 2419200 } \ No newline at end of file diff --git a/qbit-maid.py b/qbit-maid.py index cf1a5bb..3ea2ff4 100644 --- a/qbit-maid.py +++ b/qbit-maid.py @@ -46,7 +46,7 @@ class Qbt: buildtorlist(self) torprocessor(self) printprocessor(self) - #tordelete(self) + tordelete(self) if __name__== "__main__": Qbt() \ No newline at end of file diff --git a/qlogging.py b/qlogging.py index ad57e89..01385df 100644 --- a/qlogging.py +++ b/qlogging.py @@ -6,6 +6,7 @@ def torlog(self): self.tl.basicConfig(filename=self.logpath, format='%(asctime)s:%(levelname)s:%(message)s', encoding='utf-8', datefmt='%m/%d/%Y %I:%M:%S %p',level=self.tl.DEBUG) if self.loglevel == 'INFO': self.tl.basicConfig(filename=self.logpath, format='%(asctime)s:%(levelname)s:%(message)s', encoding='utf-8', datefmt='%m/%d/%Y %I:%M:%S %p',level=self.tl.INFO) + def toremail(self): pass