Bugfix: if there is no season, they put 0 instead of 1. Let's correct that
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user