From c0ec886f5ba3a8cedda0a908cf13409577d6ecd2 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 26 Feb 2025 02:27:53 +0800 Subject: [PATCH] fix(spotify): filter removed episodes (#18456) --- lib/routes/spotify/show.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/spotify/show.ts b/lib/routes/spotify/show.ts index 20e14c7922512d..352b058c21f867 100644 --- a/lib/routes/spotify/show.ts +++ b/lib/routes/spotify/show.ts @@ -58,7 +58,7 @@ async function handler(ctx) { itunes_category: meta.type, itunes_explicit: meta.explicit, allowEmpty: true, - item: episodes.map((x) => ({ + item: episodes.filter(Boolean).map((x) => ({ title: x.name, description: x.html_description, pubDate: parseDate(x.release_date),