mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 20:10:20 +00:00
[ADN] Fix crash issue if no episodes were found
This commit is contained in:
parent
82146f2c51
commit
e61c1717ae
1 changed files with 4 additions and 0 deletions
4
adn.ts
4
adn.ts
|
|
@ -253,6 +253,10 @@ export default class AnimationDigitalNetwork implements ServiceClass {
|
|||
console.error('Failed to list show data: Failed to get show');
|
||||
return { isOk: false };
|
||||
}
|
||||
if (show.value.videos.length == 0) {
|
||||
console.error('No episodes found!');
|
||||
return { isOk: false };
|
||||
}
|
||||
const showData = show.value.videos[0].show;
|
||||
console.info(`[S.${showData.id}] ${showData.title}`);
|
||||
const specials: ADNVideo[] = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue