From 6009bdaaf92cfa6473fdc42f866a623686ca1ccb Mon Sep 17 00:00:00 2001 From: Tera <1527149+Denoder@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:38:46 +0200 Subject: [PATCH] Sort episodes to have specials at the end --- crunchy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index 6f3c939..fddd838 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -2240,8 +2240,8 @@ export default class Crunchy implements ServiceClass { // Sort episodes to have specials at the end const specials = Object.entries(episodes).filter(a => a[0].startsWith('S')), - normal = Object.entries(episodes).filter(a => a[0].startsWith('E')), - sortedEpisodes = Object.fromEntries([...normal, ...specials]); + normal = Object.entries(episodes).filter(a => a[0].startsWith('E')), + sortedEpisodes = Object.fromEntries([...normal, ...specials]); for (const key of Object.keys(sortedEpisodes)) { const item = sortedEpisodes[key];