fix transfer
This commit is contained in:
parent
760f603076
commit
90fe9f6c82
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user