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