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