Sort episodes to have specials at the end
This commit is contained in:
parent
f7f8806b14
commit
6009bdaaf9
1 changed files with 2 additions and 2 deletions
|
|
@ -2240,8 +2240,8 @@ export default class Crunchy implements ServiceClass {
|
||||||
|
|
||||||
// Sort episodes to have specials at the end
|
// Sort episodes to have specials at the end
|
||||||
const specials = Object.entries(episodes).filter(a => a[0].startsWith('S')),
|
const specials = Object.entries(episodes).filter(a => a[0].startsWith('S')),
|
||||||
normal = Object.entries(episodes).filter(a => a[0].startsWith('E')),
|
normal = Object.entries(episodes).filter(a => a[0].startsWith('E')),
|
||||||
sortedEpisodes = Object.fromEntries([...normal, ...specials]);
|
sortedEpisodes = Object.fromEntries([...normal, ...specials]);
|
||||||
|
|
||||||
for (const key of Object.keys(sortedEpisodes)) {
|
for (const key of Object.keys(sortedEpisodes)) {
|
||||||
const item = sortedEpisodes[key];
|
const item = sortedEpisodes[key];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue