Fixed expect instead of expectType property in Bang scraper.
This commit is contained in:
@@ -78,7 +78,7 @@ function scrapeAll(scenes, entity) {
|
|||||||
posterUrl.href,
|
posterUrl.href,
|
||||||
].map((src) => ({
|
].map((src) => ({
|
||||||
src,
|
src,
|
||||||
expect: {
|
expectType: {
|
||||||
'application/octet-stream': 'image/jpeg',
|
'application/octet-stream': 'image/jpeg',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
@@ -157,7 +157,7 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||||||
if (poster) {
|
if (poster) {
|
||||||
release.poster = {
|
release.poster = {
|
||||||
src: poster,
|
src: poster,
|
||||||
expect: {
|
expectType: {
|
||||||
'application/octet-stream': 'image/jpeg',
|
'application/octet-stream': 'image/jpeg',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -175,7 +175,7 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||||||
|
|
||||||
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((src) => ({
|
||||||
src,
|
src,
|
||||||
expect: {
|
expectType: {
|
||||||
'application/octet-stream': 'image/jpeg',
|
'application/octet-stream': 'image/jpeg',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user