mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-05-13 05:10:50 +00:00
fixed ADN movie select
This commit is contained in:
parent
7455d32e1d
commit
fe991fecab
1 changed files with 4 additions and 4 deletions
8
adn.ts
8
adn.ts
|
|
@ -271,9 +271,8 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
show.value.videos[episodeIndex].season = episode.season;
|
||||
if (!episodeNumber) {
|
||||
specialIndex++;
|
||||
const special = show.value.videos.splice(episodeIndex, 1);
|
||||
special[0].shortNumber = 'S'+specialIndex;
|
||||
specials.push(...special);
|
||||
episode.shortNumber = 'S'+specialIndex;
|
||||
specials.push(episode);
|
||||
episodeIndex--;
|
||||
} else {
|
||||
console.info(` (${episode.id}) [E${episode.shortNumber}] ${episode.number} - ${episode.name}`);
|
||||
|
|
@ -281,7 +280,8 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
episodeIndex++;
|
||||
}
|
||||
for (const special of specials) {
|
||||
console.info(` (${special.id}) [${special.shortNumber}] ${special.number} - ${special.name}`);
|
||||
console.info(` (Special) (${special.id}) [${special.shortNumber}] ${special.number} - ${special.name}`);
|
||||
show.value.videos.splice(show.value.videos.findIndex(i => i.id === special.id), 1)
|
||||
}
|
||||
show.value.videos.push(...specials);
|
||||
return { isOk: true, value: show.value };
|
||||
|
|
|
|||
Loading…
Reference in a new issue