5 Commits

Author SHA1 Message Date
Godzil
de3f9a1e9e 1.6.1 2020-04-28 00:03:51 +01:00
Godzil
f26ea70ef8 Bugfix: if there is no season, they put 0 instead of 1. Let's correct that 2020-04-28 00:03:25 +01:00
Godzil
baf15dc1b4 Minor changes in npmignore 2020-04-28 00:02:43 +01:00
Godzil
2c58e5e4ba update npm ignore file. 2020-04-27 23:38:14 +01:00
Godzil
c8f33e947d Update gitignore 2020-04-27 23:25:22 +01:00
4 changed files with 11 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
dist/
node_modules/
package-lock.json
.idea/
test/
config.json

View File

@@ -1,8 +1,12 @@
extras/
node_modules/
src/
typings/
ts.js
tsconfig.json
tsd.json
tslint.json
.idea/
.github/
test/
config.json
.travis.yml

View File

@@ -15,7 +15,7 @@
"engines": {
"node": ">=5.0"
},
"version": "1.6.0",
"version": "1.6.1",
"bin": {
"crunchy": "./bin/crunchy",
"crunchy.sh": "./bin/crunchy.sh"

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));