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