Fixed JayRock status response,

This commit is contained in:
DebaucheryLibrarian 2020-11-13 01:23:06 +01:00
parent cc7c9f3b31
commit b3a5d7f379
2 changed files with 3 additions and 3 deletions

View File

@ -3447,7 +3447,7 @@ const sites = [
name: 'Jay\'s POV',
url: 'https://jayspov.net',
parent: 'jayrock',
/* more recent scenes on own site
/* available on Gamma, but own site seems more recent
parameters: {
referer: 'https://www.21sextury.com',
scene: false,

View File

@ -170,11 +170,11 @@ async function fetchLatestApi(channel, page = 1) {
const url = `${channel.url}/sapi/${token}/${time}/content.load?limit=50&offset=${(page - 1) * 50}&transitParameters[v1]=OhUOlmasXD&transitParameters[v2]=OhUOlmasXD&transitParameters[preset]=videos`;
const res = await http.get(url);
if (res.statusCode === 200 && res.body.status) {
if (res.ok && res.body.status) {
return scrapeLatestApi(res.body.response.collection, channel, { time, token });
}
return null;
return res.ok ? res.body.status : res.status;
}
async function fetchLatest(channel, page = 1, options, preData) {