[ADN] Fix some output problems
Fix season detection, and fix null instead of show title in some circumstances
This commit is contained in:
parent
5730450e11
commit
8dd0725f9a
2 changed files with 4 additions and 3 deletions
5
adn.ts
5
adn.ts
|
|
@ -273,6 +273,7 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
} else {
|
||||
episode.season = '1';
|
||||
}
|
||||
show.value.videos[episodeIndex].season = episode.season;
|
||||
if (!episodeNumber) {
|
||||
specialIndex++;
|
||||
const special = show.value.videos.splice(episodeIndex, 1);
|
||||
|
|
@ -446,7 +447,7 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
let fileName;
|
||||
const variables: Variable[] = [];
|
||||
if(data.show.title && data.shortNumber && data.title){
|
||||
mediaName = `${data.show.shortTitle} - ${data.shortNumber} - ${data.title}`;
|
||||
mediaName = `${data.show.shortTitle ?? data.show.title} - ${data.shortNumber} - ${data.title}`;
|
||||
}
|
||||
|
||||
const files: DownloadedMedia[] = [];
|
||||
|
|
@ -541,7 +542,7 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
['title', data.title, true],
|
||||
['episode', isNaN(parseFloat(data.shortNumber)) ? data.shortNumber : parseFloat(data.shortNumber), false],
|
||||
['service', 'ADN', false],
|
||||
['seriesTitle', data.show.shortTitle, true],
|
||||
['seriesTitle', data.show.shortTitle ?? data.show.title, true],
|
||||
['showTitle', data.show.title, true],
|
||||
['season', isNaN(parseFloat(data.season)) ? data.season : parseFloat(data.season), false]
|
||||
] as [AvailableFilenameVars, string|number, boolean][]).map((a): Variable => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "multi-downloader-nx",
|
||||
"short_name": "aniDL",
|
||||
"version": "5.0.0",
|
||||
"version": "5.0.1",
|
||||
"description": "Downloader for Crunchyroll, Hidive, AnimeOnegai, and AnimationDigitalNetwork with CLI and GUI",
|
||||
"keywords": [
|
||||
"download",
|
||||
|
|
|
|||
Loading…
Reference in a new issue