updated readme

This commit is contained in:
jblu 2022-07-14 20:33:53 -05:00
parent ef21adc132
commit e624236586
4 changed files with 23 additions and 3 deletions

View File

@ -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
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.

View File

@ -5,5 +5,5 @@
"password": "admin",
"loglevel": "INFO",
"logpath": "./qc.log",
"age": 2630000
"age": 2419200
}

View File

@ -46,7 +46,7 @@ class Qbt:
buildtorlist(self)
torprocessor(self)
printprocessor(self)
#tordelete(self)
tordelete(self)
if __name__== "__main__":
Qbt()

View File

@ -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