feat: unify media recognition and music lifecycle

This commit is contained in:
jxxghp
2026-08-12 06:51:58 +08:00
parent b018646f61
commit 97dba2a8ae
96 changed files with 4677 additions and 719 deletions
+1 -8
View File
@@ -126,18 +126,11 @@ class SearchTorrentsTool(MoviePilotTool):
source=media_source,
mediaid=media_id,
mtype=media_type_enum,
music_type=normalized_music_type,
area=area or "title",
sites=sites,
cache_local=False,
)
if normalized_music_type:
filtered_torrents = [
context
for context in filtered_torrents or []
if getattr(context.media_info, "music_type", None)
== normalized_music_type
]
# 获取站点信息
all_indexers = await SitesHelper().async_get_indexers()
all_sites = [{"id": indexer.get("id"), "name": indexer.get("name")} for indexer in (all_indexers or [])]