fix transfer

This commit is contained in:
jxxghp 2023-06-11 15:06:39 +08:00
parent 760f603076
commit 90fe9f6c82
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class Qbittorrent(metaclass=Singleton):
if not isinstance(tags, list): if not isinstance(tags, list):
tags = [tags] tags = [tags]
for torrent in torrents: for torrent in torrents:
if set(tags).issubset(set(torrent.get("tags"))): if set(tags).issubset(set(torrent.get("tags").split(','))):
results.append(torrent) results.append(torrent)
return results, False return results, False
return torrents or [], False return torrents or [], False

View File

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