Fixed photo query in Aziana scraper.

This commit is contained in:
DebaucheryLibrarian
2023-08-03 23:24:23 +02:00
parent 2ebc2d441f
commit b287f5c2db
4 changed files with 15 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ function scrapeAll(scenes, site) {
});
}
function scrapeScene({ html, qu }, url) {
function scrapeScene({ html, qu }, url, channel) {
const release = { url };
release.entryId = qu.q('.stdimage', 'id', true).match(/set-target-(\d+)/)[1];
@@ -58,7 +58,7 @@ function scrapeScene({ html, qu }, url) {
const poster = qu.img('a img');
release.poster = getFallbacks(poster);
release.photos = qu.imgs('.featured-video img', 'src0_1x').map((source) => getFallbacks(source));
release.caps = qu.imgs('.featured-video img', 'src0_1x', { origin: channel.url }).map((source) => getFallbacks(source));
return release;
}