Merge pull request #4693 from wumode/fix_4691

This commit is contained in:
jxxghp
2025-08-03 15:40:19 +08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ class Qbittorrent:
if tags:
results = []
if not isinstance(tags, list):
tags = [tags]
tags = tags.split(',')
try:
for torrent in torrents:
torrent_tags = [str(tag).strip() for tag in torrent.get("tags").split(',')]

View File

@@ -139,7 +139,7 @@ class TransmissionModule(_ModuleBase, _DownloaderBase[Transmission]):
if label:
labels = label.split(',')
elif settings.TORRENT_TAG:
labels = [settings.TORRENT_TAG]
labels = settings.TORRENT_TAG.split(',')
else:
labels = None
# 添加任务

View File

@@ -91,7 +91,7 @@ class Transmission:
if status and not isinstance(status, list):
status = [status]
if tags and not isinstance(tags, list):
tags = [tags]
tags = tags.split(',')
ret_torrents = []
try:
for torrent in torrents: