diff --git a/app/plugins/iyuuautoseed/__init__.py b/app/plugins/iyuuautoseed/__init__.py index 8b0b0b93..e6479d14 100644 --- a/app/plugins/iyuuautoseed/__init__.py +++ b/app/plugins/iyuuautoseed/__init__.py @@ -780,7 +780,8 @@ class IYUUAutoSeed(_PluginBase): 获取种子标签 """ 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: print(str(e)) return [] diff --git a/app/plugins/torrenttransfer/__init__.py b/app/plugins/torrenttransfer/__init__.py index 154ce07f..61df6015 100644 --- a/app/plugins/torrenttransfer/__init__.py +++ b/app/plugins/torrenttransfer/__init__.py @@ -700,7 +700,8 @@ class TorrentTransfer(_PluginBase): 获取种子标签 """ 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: print(str(e)) return []