This commit is contained in:
jxxghp
2023-07-08 14:37:51 +08:00
parent 6f3209f95d
commit b6d957c7d9
4 changed files with 12 additions and 1 deletions

View File

@ -529,7 +529,9 @@ class TorrentSpider:
self.__remove(labels, selector)
items = self.__attribute_or_text(labels, selector)
if items:
self.torrents_info['labels'] = items
self.torrents_info['labels'] = [item for item in items if item]
else:
self.torrents_info['labels'] = []
def get_info(self, torrent) -> dict:
"""