#5 changed name logging

This commit is contained in:
2022-07-22 14:47:36 -05:00
parent 2015c0a60d
commit 3b36d54018
2 changed files with 11 additions and 11 deletions

View File

@@ -9,12 +9,12 @@ def buildtorlist(self):
while self.torrentlist:
torrent = self.torrentlist.pop()
if self.use_log:
self.tl.debug(f'{torrent["name"]} {torrent["infohash_v1"]}')
self.tl.debug(f'["{torrent["name"][0:20]}..."] {torrent["infohash_v1"]}')
if torrent['category'] == 'tech':
break
if torrent['tracker'] == '':
if self.use_log:
self.tl.warning(f"Torrent doesn't have a tracker{torrent['name']} [{torrent['tracker']}]hash: {torrent['hash']}")
self.tl.warning(f'Torrent doesn\'t have a tracker ["{torrent["name"][0:20]}..."] [{torrent["tracker"]}]hash: {torrent["hash"]}')
break
if self.tracker_whitelist['iptorrents-empirehost'] in torrent['tracker']:
if self.use_log: