Fixed Adult Empire/Elegant Angel age verification.

This commit is contained in:
DebaucheryLibrarian 2024-11-03 02:52:30 +01:00
parent c78c12929a
commit 90027d12fb
1 changed files with 18 additions and 3 deletions

View File

@ -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;',
},
},
}; };