Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa0e8568b4 | ||
|
|
53c1940143 | ||
|
|
1a1753ee5b | ||
|
|
99b5ec246b | ||
|
|
49e6f07237 | ||
|
|
62606005b5 | ||
|
|
eb9fdc9177 | ||
|
|
546f1eeeb4 | ||
|
|
d92fbace08 | ||
|
|
43c91eea08 | ||
|
|
9542e451f2 | ||
|
|
de3f9a1e9e | ||
|
|
f26ea70ef8 | ||
|
|
baf15dc1b4 | ||
|
|
2c58e5e4ba | ||
|
|
c8f33e947d |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
dist/
|
dist/
|
||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
.idea/
|
||||||
|
test/
|
||||||
|
config.json
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
extras/
|
extras/
|
||||||
node_modules/
|
node_modules/
|
||||||
src/
|
src/
|
||||||
typings/
|
|
||||||
ts.js
|
ts.js
|
||||||
tsconfig.json
|
tsconfig.json
|
||||||
tsd.json
|
tsd.json
|
||||||
tslint.json
|
tslint.json
|
||||||
|
.idea/
|
||||||
|
.github/
|
||||||
|
test/
|
||||||
|
config.json
|
||||||
|
.travis.yml
|
||||||
|
|||||||
9152
package-lock.json
generated
Normal file
9152
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
55
package.json
55
package.json
@@ -15,41 +15,40 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=5.0"
|
"node": ">=5.0"
|
||||||
},
|
},
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"bin": {
|
"bin": {
|
||||||
"crunchy": "./bin/crunchy",
|
"crunchy": "./bin/crunchy",
|
||||||
"crunchy.sh": "./bin/crunchy.sh"
|
"crunchy.sh": "./bin/crunchy.sh"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"big-integer": "^1.6.48",
|
"big-integer": ">=1.6.51",
|
||||||
"bluebird": "^3.7.2",
|
"bluebird": ">=3.7.2",
|
||||||
"brotli": "^1.3.2",
|
"brotli": ">=1.3.3",
|
||||||
"cheerio": "^0.22.0",
|
"cloudscraper": ">=4.6.0",
|
||||||
"cloudscraper": "^4.6.0",
|
"commander": ">=11.0.0",
|
||||||
"commander": "^5.0.0",
|
"fs-extra": ">=11.1.1",
|
||||||
"fs-extra": "^9.0.0",
|
"mkdirp": ">=3.0.1",
|
||||||
"mkdirp": "^1.0.4",
|
"pjson": ">=1.0.9",
|
||||||
"pjson": "^1.0.9",
|
"request": ">=2.88.2",
|
||||||
"request": "^2.88.2",
|
"request-promise": ">=4.2.6",
|
||||||
"request-promise": "^4.2.5",
|
"tough-cookie-file-store": ">=2.0.3",
|
||||||
"tough-cookie-file-store": "^1.2.0",
|
"uuid": ">=9.0.0",
|
||||||
"uuid": "^7.0.3",
|
"xml2js": ">=0.6.0"
|
||||||
"xml2js": "^0.4.23"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bluebird": "^3.5.30",
|
"@types/bluebird": ">=3.5.38",
|
||||||
"@types/cheerio": "^0.22.17",
|
"@types/cheerio": ">=0.22.31",
|
||||||
"@types/fs-extra": "^8.1.0",
|
"@types/fs-extra": ">=11.0.1",
|
||||||
"@types/mkdirp": "^1.0.0",
|
"@types/mkdirp": ">=2.0.0",
|
||||||
"@types/node": "^13.11.1",
|
"@types/node": ">=20.3.2",
|
||||||
"@types/request": "^2.48.4",
|
"@types/request": ">=2.48.8",
|
||||||
"@types/request-promise": "^4.1.46",
|
"@types/request-promise": ">=4.1.48",
|
||||||
"@types/uuid": "^7.0.2",
|
"@types/uuid": ">=9.0.2",
|
||||||
"@types/xml2js": "^0.4.5",
|
"@types/xml2js": ">=0.4.11",
|
||||||
"npm-check": "^5.9.2",
|
"cheerio": "^1.0.0-rc.12",
|
||||||
"tsconfig-lint": "^0.12.0",
|
"npm-check": "^6.0.1",
|
||||||
"tslint": "^6.1.1",
|
"tslint": "^6.1.3",
|
||||||
"typescript": "^3.8.3"
|
"typescript": ">=5.1.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
|
|||||||
@@ -396,6 +396,8 @@ function scrapePage(config: IConfig, address: string, done: (err: Error, page?:
|
|||||||
if (pageMetadata.partOfSeason)
|
if (pageMetadata.partOfSeason)
|
||||||
{
|
{
|
||||||
seasonNumber = pageMetadata.partOfSeason.seasonNumber;
|
seasonNumber = pageMetadata.partOfSeason.seasonNumber;
|
||||||
|
if (seasonNumber === '0') { seasonNumber = '1'; }
|
||||||
|
|
||||||
seasonTitle = pageMetadata.partOfSeason.name;
|
seasonTitle = pageMetadata.partOfSeason.name;
|
||||||
}
|
}
|
||||||
done(null, vlos.getMedia(script, seasonTitle, seasonNumber));
|
done(null, vlos.getMedia(script, seasonTitle, seasonNumber));
|
||||||
|
|||||||
Reference in New Issue
Block a user