fix(plugins): mangabaka type-specific external id namespaces

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas Winther
2026-10-30 15:50:51 +01:00
co-authored by Claude Opus 5.5
parent d9f935d8a8
commit 2573c83f70
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -22,10 +22,10 @@ function hint(e: ApiEntry): WorkHint {
const add = (ns: string, v: { id?: number | string | null } | null | undefined) => {
if (v?.id != null && v.id !== "") externalIds[ns] = String(v.id);
};
add("anilist", s?.source?.anilist);
add("mal", s?.source?.my_anime_list);
add("anilist_manga", s?.source?.anilist);
add("mal_manga", s?.source?.my_anime_list);
add("mangaupdates", s?.source?.manga_updates);
add("kitsu", s?.source?.kitsu);
add("kitsu_manga", s?.source?.kitsu);
return {
title: s?.title ?? `MangaBaka series ${e.series_id}`,
mediaType: s?.type === "comic" ? "comic" : "manga",