This commit is contained in:
jxxghp 2023-08-13 07:19:54 +08:00
parent 0f3b92fda7
commit 51b30e8e63
2 changed files with 4 additions and 2 deletions

View File

@ -780,7 +780,8 @@ class IYUUAutoSeed(_PluginBase):
获取种子标签 获取种子标签
""" """
try: try:
return torrent.get("tags") or [] if dl_type == "qbittorrent" else torrent.labels or [] return [str(tag).strip() for tag in torrent.get("tags").split(',')] \
if dl_type == "qbittorrent" else torrent.labels or []
except Exception as e: except Exception as e:
print(str(e)) print(str(e))
return [] return []

View File

@ -700,7 +700,8 @@ class TorrentTransfer(_PluginBase):
获取种子标签 获取种子标签
""" """
try: try:
return torrent.get("tags") or [] if dl_type == "qbittorrent" else torrent.labels or [] return [str(tag).strip() for tag in torrent.get("tags").split(',')] \
if dl_type == "qbittorrent" else torrent.labels or []
except Exception as e: except Exception as e:
print(str(e)) print(str(e))
return [] return []