diff --git a/src/scrapers/adultempire.js b/src/scrapers/adultempire.js index 3bfc76bc..ce993a40 100755 --- a/src/scrapers/adultempire.js +++ b/src/scrapers/adultempire.js @@ -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 unprint.get(options.parameters?.latest ? `${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) { return scrapeAll(res.context, channel, options); @@ -205,6 +210,16 @@ module.exports = { fetchLatest, // fetchMovies, fetchProfile, - scrapeScene: scrapeRelease, - scrapeMovie: scrapeRelease, + scrapeScene: { + scraper: scrapeRelease, + headers: { + Cookie: 'ageConfirmed=true;', + }, + }, + scrapeMovie: { + scraper: scrapeRelease, + headers: { + Cookie: 'ageConfirmed=true;', + }, + }, };