updated readme
This commit is contained in:
parent
ef21adc132
commit
e624236586
19
README.md
19
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
|
||||
@ -17,3 +19,20 @@ qlogging.py
|
||||
|
||||
The fourth file shall be logic to process torrents.
|
||||
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.
|
@ -5,5 +5,5 @@
|
||||
"password": "admin",
|
||||
"loglevel": "INFO",
|
||||
"logpath": "./qc.log",
|
||||
"age": 2630000
|
||||
"age": 2419200
|
||||
}
|
@ -46,7 +46,7 @@ class Qbt:
|
||||
buildtorlist(self)
|
||||
torprocessor(self)
|
||||
printprocessor(self)
|
||||
#tordelete(self)
|
||||
tordelete(self)
|
||||
|
||||
if __name__== "__main__":
|
||||
Qbt()
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user