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):
tags = [tags]
for torrent in torrents:
if set(tags).issubset(set(torrent.get("tags"))):
if set(tags).issubset(set(torrent.get("tags").split(','))):
results.append(torrent)
return results, False
return torrents or [], False

View File

@ -71,7 +71,7 @@ class Transmission(metaclass=Singleton):
if status and torrent.status not in status:
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)):
continue
ret_torrents.append(torrent)