Fixed expect type associated to wrong object in Bang scraper.

This commit is contained in:
DebaucheryLibrarian
2026-03-27 03:22:51 +01:00
parent 69d410666d
commit f5da798cd2
2 changed files with 10 additions and 2 deletions

View File

@@ -173,12 +173,12 @@ async function scrapeScene({ query }, { url, entity }) {
|| query.attribute('meta[property="og:video"]')
|| query.video('video[data-videocontainer-target] source');
release.photos = query.sourceSets('div[data-controller] a[href^="/photos"] img').map((src) => ({
release.photos = query.sourceSets('div[data-controller] a[href^="/photos"] img').map((sourceSet) => sourceSet.map((src) => ({
src,
expectType: {
'application/octet-stream': 'image/jpeg',
},
}));
})));
release.photoCount = query.number('//h2[contains(text(), "Photos")]/following-sibling::span');