#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

@@ -3,7 +3,7 @@ def torprocessor(self):
If torrent meets criteria for deletion, its infohash_v1 will be appended to self.torrent_hash_delete_list
"""
for canidate in self.tracker_nonprotected_list:
if 'ipt' in canidate['tags']:
if canidate['tags'] in self.cat_whitelist.values():
if self.use_log:
self.tl.warning(f'["{canidate["name"][0:20]}..."] was in non-protected list.')
continue