fix tag bug

This commit is contained in:
jxxghp
2023-06-13 22:22:08 +08:00
parent 6b3bfd04a3
commit c1a22518a2
3 changed files with 12 additions and 11 deletions

View File

@ -71,7 +71,8 @@ class Transmission(metaclass=Singleton):
if status and torrent.status not in status:
continue
# 种子标签
labels = torrent.labels.split(',') if hasattr(torrent, "labels") else []
labels = [str(tag).strip()
for tag in torrent.labels.split(',')] if hasattr(torrent, "labels") else []
if tags and not set(tags).issubset(set(labels)):
continue
ret_torrents.append(torrent)