#3 added cat whitelist and updated readme

This commit is contained in:
2022-07-22 23:45:57 -05:00
parent aad7d5942c
commit dc8ad10e73
6 changed files with 22 additions and 4 deletions

View File

@@ -10,7 +10,8 @@ def buildtorlist(self):
torrent = self.torrentlist.pop()
if self.use_log:
self.tl.debug(f'["{torrent["name"][0:20]}..."] {torrent["infohash_v1"]}')
if torrent['category'] == 'tech':
if torrent['tags'] in self.cat_whitelist.values():
self.tl.info(f'Ignored torrent:["{torrent["name"][0:20]}..."]')
continue
if torrent['tracker'] == '':
if self.use_log:
@@ -56,4 +57,7 @@ def torrentcount(self):
def tordeletetags(self):
tag_list = ['ipt','public','iptorrents']
self.qbt_client.torrents_delete_tags(tag_list)
self.qbt_client.torrents_delete_tags(tag_list)
def torlisttags(self):
pass