mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
Merge pull request #4693 from wumode/fix_4691
This commit is contained in:
@@ -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(',')]
|
||||
|
||||
@@ -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
|
||||
# 添加任务
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user