mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 08:57:09 +08:00
fix bug
This commit is contained in:
@@ -780,7 +780,8 @@ class IYUUAutoSeed(_PluginBase):
|
|||||||
获取种子标签
|
获取种子标签
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return torrent.get("tags") or [] if dl_type == "qbittorrent" else torrent.labels or []
|
return [str(tag).strip() for tag in torrent.get("tags").split(',')] \
|
||||||
|
if dl_type == "qbittorrent" else torrent.labels or []
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(str(e))
|
print(str(e))
|
||||||
return []
|
return []
|
||||||
|
|||||||
@@ -700,7 +700,8 @@ class TorrentTransfer(_PluginBase):
|
|||||||
获取种子标签
|
获取种子标签
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return torrent.get("tags") or [] if dl_type == "qbittorrent" else torrent.labels or []
|
return [str(tag).strip() for tag in torrent.get("tags").split(',')] \
|
||||||
|
if dl_type == "qbittorrent" else torrent.labels or []
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(str(e))
|
print(str(e))
|
||||||
return []
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user