feat(library): anilist-primary manga metadata with jikan fallback

This commit is contained in:
afiqzudinhadi 2026-08-05 14:46:31 +08:00
parent d76ed2631b
commit 8a046a0ea2
12 changed files with 641 additions and 15 deletions

30
tests/fixtures/anilist-manga-csm.json vendored Normal file
View file

@ -0,0 +1,30 @@
{
"data": {
"Media": {
"id": 105778,
"idMal": 116778,
"title": {
"romaji": "Chainsaw Man",
"english": "Chainsaw Man"
},
"status": "RELEASING",
"chapters": null,
"volumes": null,
"averageScore": 85,
"genres": ["Action", "Comedy", "Horror", "Supernatural"],
"staff": {
"edges": [
{ "role": "Story & Art", "node": { "name": { "full": "Tatsuki Fujimoto" } } },
{ "role": "Letterer", "node": { "name": { "full": "Some Letterer" } } }
]
},
"startDate": { "year": 2018, "month": 12, "day": 3 },
"endDate": { "year": null, "month": null, "day": null },
"description": "Denji has been robbed of a normal life ever since his Chainsaw Devil, Pochita, merged with him.<br><i>Now he hunts devils for a living.</i>",
"coverImage": {
"large": "https://s4.anilist.co/file/anilistcdn/media/manga/cover/large/bx105778-JCftt5T5vNAY.jpg"
},
"siteUrl": "https://anilist.co/manga/105778"
}
}
}

View file

@ -17,6 +17,7 @@ score: 8.7
published_from: 2018-12-03
published_to: null
mal_id: 116778
anilist_id: 105778
mangadex_id: abc-123
rss: "https://example.com/csm-feed.xml"
poster: "https://cdn.myanimelist.net/images/manga/3/216464l.jpg"