diff options
| author | Fuwn <[email protected]> | 2023-12-30 05:59:15 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-30 05:59:15 -0800 |
| commit | 8df9d12c7087664db8940ba1debf82206982fa3d (patch) | |
| tree | 1358cf16f380e0daa4bf946c976538b8c80520ee /src/lib/AniList/prequels.ts | |
| parent | style(category): remove type (diff) | |
| download | due.moe-8df9d12c7087664db8940ba1debf82206982fa3d.tar.xz due.moe-8df9d12c7087664db8940ba1debf82206982fa3d.zip | |
fix(anilist): final push page
Diffstat (limited to 'src/lib/AniList/prequels.ts')
| -rw-r--r-- | src/lib/AniList/prequels.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/AniList/prequels.ts b/src/lib/AniList/prequels.ts index e04f7ad7..5b7b4dab 100644 --- a/src/lib/AniList/prequels.ts +++ b/src/lib/AniList/prequels.ts @@ -124,12 +124,16 @@ export const prequels = async ( currentPage = await prequelsPage(page, anilistAuthorisation, year, season); } + for (const candidate of currentPage.data.Page.media) candidates.push(candidate); + const media: MediaPrequel[] = []; for (const candidate of candidates) { let episodes = 0; let seen = 0; + console.log(candidate.title.romaji); + for (const relation of candidate.relations.edges) { if (relation.relationType === 'PREQUEL' || relation.relationType === 'PARENT') { if ( |