fix:#4691

This commit is contained in:
wumode
2025-08-03 13:56:58 +08:00
parent 08aa749a53
commit 2fa8a266c5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class Qbittorrent:
if tags: if tags:
results = [] results = []
if not isinstance(tags, list): if not isinstance(tags, list):
tags = [tags] tags = tags.split(',') if tags is not None else []
try: try:
for torrent in torrents: for torrent in torrents:
torrent_tags = [str(tag).strip() for tag in torrent.get("tags").split(',')] torrent_tags = [str(tag).strip() for tag in torrent.get("tags").split(',')]
+1 -1
View File
@@ -139,7 +139,7 @@ class TransmissionModule(_ModuleBase, _DownloaderBase[Transmission]):
if label: if label:
labels = label.split(',') labels = label.split(',')
elif settings.TORRENT_TAG: elif settings.TORRENT_TAG:
labels = [settings.TORRENT_TAG] labels = settings.TORRENT_TAG.split(',')
else: else:
labels = None labels = None
# 添加任务 # 添加任务
+1 -1
View File
@@ -91,7 +91,7 @@ class Transmission:
if status and not isinstance(status, list): if status and not isinstance(status, list):
status = [status] status = [status]
if tags and not isinstance(tags, list): if tags and not isinstance(tags, list):
tags = [tags] tags = tags.split(',')
ret_torrents = [] ret_torrents = []
try: try:
for torrent in torrents: for torrent in torrents: