Fixed expect type associated to wrong object in Bang scraper.
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user