Fixed JayRock status response,
This commit is contained in:
parent
cc7c9f3b31
commit
b3a5d7f379
|
@ -3447,7 +3447,7 @@ const sites = [
|
||||||
name: 'Jay\'s POV',
|
name: 'Jay\'s POV',
|
||||||
url: 'https://jayspov.net',
|
url: 'https://jayspov.net',
|
||||||
parent: 'jayrock',
|
parent: 'jayrock',
|
||||||
/* more recent scenes on own site
|
/* available on Gamma, but own site seems more recent
|
||||||
parameters: {
|
parameters: {
|
||||||
referer: 'https://www.21sextury.com',
|
referer: 'https://www.21sextury.com',
|
||||||
scene: false,
|
scene: false,
|
||||||
|
|
|
@ -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 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);
|
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 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) {
|
async function fetchLatest(channel, page = 1, options, preData) {
|
||||||
|
|
Loading…
Reference in New Issue