Update app/modules/qbittorrent/qbittorrent.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
wumode
2025-08-03 14:12:57 +08:00
committed by GitHub
parent 2fa8a266c5
commit cbd999f88d

View File

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