fixed attrubute error
This commit is contained in:
parent
fb55c54f01
commit
26ac36a164
@ -69,6 +69,7 @@ class Qbt:
|
|||||||
listqbitapiinfo(self)
|
listqbitapiinfo(self)
|
||||||
listfirsttor(self)
|
listfirsttor(self)
|
||||||
buildtorlist(self)
|
buildtorlist(self)
|
||||||
|
processcounts(self)
|
||||||
#tordeletetags(self)
|
#tordeletetags(self)
|
||||||
if self.use_log:
|
if self.use_log:
|
||||||
torrentcount(self)
|
torrentcount(self)
|
||||||
|
28
qlogging.py
28
qlogging.py
@ -16,6 +16,21 @@ def tornotifytest(self):
|
|||||||
"""Used to make sure tornotify is working and messages are getting to the client"""
|
"""Used to make sure tornotify is working and messages are getting to the client"""
|
||||||
self.poc.send_message("Test Message", title="qbit-maid")
|
self.poc.send_message("Test Message", title="qbit-maid")
|
||||||
|
|
||||||
|
def processcounts(self):
|
||||||
|
self.c = self.ct()
|
||||||
|
for item in self.tracker_list:
|
||||||
|
self.c[item["tags"]] += 1
|
||||||
|
|
||||||
|
def printprocessor(self):
|
||||||
|
"""Print summary of torrents"""
|
||||||
|
self.tl.info(f'Total: {self.total_torrents}')
|
||||||
|
self.tl.info(f'Premature: {self.preme_tor_counter}')
|
||||||
|
self.tl.info(f'Ignored: {self.ignored_counter}')
|
||||||
|
self.tl.info(f'Protected: {self.c[self.tracker_protected_tag]}')
|
||||||
|
self.tl.info(f'Non-protected: {self.c[self.tracker_non_protected_tag]}')
|
||||||
|
self.tl.info(f'Orphaned: {self.up_tor_counter}')
|
||||||
|
self.tl.info(f'Marked for deletion: {len(self.torrent_hash_delete_list)}')
|
||||||
|
|
||||||
def tornotifysummary(self):
|
def tornotifysummary(self):
|
||||||
"""Main notification method when the app is used in an automated fashion"""
|
"""Main notification method when the app is used in an automated fashion"""
|
||||||
self.poc.send_message(f" Total: {self.total_torrents}\n\
|
self.poc.send_message(f" Total: {self.total_torrents}\n\
|
||||||
@ -26,19 +41,6 @@ def tornotifysummary(self):
|
|||||||
Orphaned: {self.up_tor_counter}\n\
|
Orphaned: {self.up_tor_counter}\n\
|
||||||
Marked for deletion: {len(self.torrent_hash_delete_list)}", title="--- qbit-maid summary ---")
|
Marked for deletion: {len(self.torrent_hash_delete_list)}", title="--- qbit-maid summary ---")
|
||||||
|
|
||||||
def printprocessor(self):
|
|
||||||
"""Print summary of torrents"""
|
|
||||||
self.c = self.ct()
|
|
||||||
for item in self.tracker_list:
|
|
||||||
self.c[item["tags"]] += 1
|
|
||||||
self.tl.info(f'Total: {self.total_torrents}')
|
|
||||||
self.tl.info(f'Premature: {self.preme_tor_counter}')
|
|
||||||
self.tl.info(f'Ignored: {self.ignored_counter}')
|
|
||||||
self.tl.info(f'Protected: {self.c[self.tracker_protected_tag]}')
|
|
||||||
self.tl.info(f'Non-protected: {self.c[self.tracker_non_protected_tag]}')
|
|
||||||
self.tl.info(f'Orphaned: {self.up_tor_counter}')
|
|
||||||
self.tl.info(f'Marked for deletion: {len(self.torrent_hash_delete_list)}')
|
|
||||||
|
|
||||||
def getunixtimestamp(self):
|
def getunixtimestamp(self):
|
||||||
"""Used for debuging and development related to unixtimestamps, not used in main script but useful"""
|
"""Used for debuging and development related to unixtimestamps, not used in main script but useful"""
|
||||||
self.uts = self.t.time()
|
self.uts = self.t.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user