Added bash CLI shorthand. Properly setting parameters in site results. Removed obsolete URL restriction from Reality Kings scraper.

This commit is contained in:
2019-11-16 23:37:33 +01:00
parent 5c551bade2
commit 2857387441
7 changed files with 13 additions and 15 deletions

View File

@@ -134,11 +134,7 @@ async function fetchLatest(site, page = 1) {
}
async function fetchScene(url, site) {
if (site.isFallback) {
throw new Error('Cannot fetch scene details from this resource');
}
const entryId = url.split('/').slice(-1)[0];
const entryId = url.match(/\d+/)[0];
const cookieJar = new CookieJar();
const session = bhttp.session({ cookieJar });