mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix:#4691
This commit is contained in:
@@ -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(',')]
|
||||||
|
|||||||
@@ -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
|
||||||
# 添加任务
|
# 添加任务
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user