Bugfix: if there is no season, they put 0 instead of 1. Let's correct that

This commit is contained in:
Godzil 2020-04-28 00:03:25 +01:00
parent baf15dc1b4
commit f26ea70ef8

View File

@ -396,6 +396,8 @@ function scrapePage(config: IConfig, address: string, done: (err: Error, page?:
if (pageMetadata.partOfSeason)
{
seasonNumber = pageMetadata.partOfSeason.seasonNumber;
if (seasonNumber === '0') { seasonNumber = '1'; }
seasonTitle = pageMetadata.partOfSeason.name;
}
done(null, vlos.getMedia(script, seasonTitle, seasonNumber));