Fixed Adult Empire/Elegant Angel age verification.
This commit is contained in:
parent
c78c12929a
commit
90027d12fb
|
@ -153,7 +153,12 @@ async function fetchLatest(channel, page, options) {
|
||||||
// const res = await qu.getAll(`${channel.url}/watch-newest-clips-and-scenes.html?page=${page}&hybridview=member`, '.item-grid-scene .grid-item');
|
// const res = await qu.getAll(`${channel.url}/watch-newest-clips-and-scenes.html?page=${page}&hybridview=member`, '.item-grid-scene .grid-item');
|
||||||
const res = await unprint.get(options.parameters?.latest
|
const res = await unprint.get(options.parameters?.latest
|
||||||
? `${options.parameters.latest}?page=${page}&view=grid`
|
? `${options.parameters.latest}?page=${page}&view=grid`
|
||||||
: `${channel.url}/watch-newest-clips-and-scenes.html?page=${page}&view=grid`, { selectAll: '.item-grid-scene .grid-item' });
|
: `${channel.url}/watch-newest-clips-and-scenes.html?page=${page}&view=grid`, {
|
||||||
|
selectAll: '.item-grid-scene .grid-item',
|
||||||
|
headers: {
|
||||||
|
Cookie: 'ageConfirmed=true;',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
return scrapeAll(res.context, channel, options);
|
return scrapeAll(res.context, channel, options);
|
||||||
|
@ -205,6 +210,16 @@ module.exports = {
|
||||||
fetchLatest,
|
fetchLatest,
|
||||||
// fetchMovies,
|
// fetchMovies,
|
||||||
fetchProfile,
|
fetchProfile,
|
||||||
scrapeScene: scrapeRelease,
|
scrapeScene: {
|
||||||
scrapeMovie: scrapeRelease,
|
scraper: scrapeRelease,
|
||||||
|
headers: {
|
||||||
|
Cookie: 'ageConfirmed=true;',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
scrapeMovie: {
|
||||||
|
scraper: scrapeRelease,
|
||||||
|
headers: {
|
||||||
|
Cookie: 'ageConfirmed=true;',
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue