fix(plugins): mangabaka type-specific external id namespaces
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d9f935d8a8
commit
2573c83f70
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user