From d20b862398be251eb5c7aa1f0d347ab5866cb55c Mon Sep 17 00:00:00 2001 From: Js0n Date: Sun, 8 Feb 2026 20:48:52 +0800 Subject: [PATCH] fix: null check --- crunchy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crunchy.ts b/crunchy.ts index 3ad6034..e223a14 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -1675,7 +1675,7 @@ export default class Crunchy implements ServiceClass { //Make a format more usable for the crunchy chapters for (const chapter in chapterData) { - if (typeof chapterData[chapter] == 'object') { + if (chapterData[chapter] && typeof chapterData[chapter] == 'object') { chapters.push(chapterData[chapter]); } } @@ -3570,3 +3570,4 @@ export default class Crunchy implements ServiceClass { return episodeList; } } +