Fixed broken Bang properties.
This commit is contained in:
+6
-12
@@ -62,7 +62,7 @@ function scrapeAll(scenes, entity) {
|
|||||||
release.title = query.content('a > span.block');
|
release.title = query.content('a > span.block');
|
||||||
release.date = query.date('a + div', 'MMM DD, YYYY');
|
release.date = query.date('a + div', 'MMM DD, YYYY');
|
||||||
|
|
||||||
release.duration = query.duration('[data-videopreview-target="duration"]', { attribute: 'data-content' });
|
release.duration = query.duration('[data-videopreview-target="duration"], .video_duration', { attribute: 'data-content' });
|
||||||
|
|
||||||
release.actors = query.elements('a + div a[href*="/pornstar"]').map((el) => ({
|
release.actors = query.elements('a + div a[href*="/pornstar"]').map((el) => ({
|
||||||
name: unprint.query.content(el),
|
name: unprint.query.content(el),
|
||||||
@@ -84,16 +84,10 @@ function scrapeAll(scenes, entity) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
const videoData = query.json('a', { attribute: 'data-videopreview-sources-value' });
|
|
||||||
|
|
||||||
if (videoData) {
|
|
||||||
release.teaser = [
|
release.teaser = [
|
||||||
videoData.mp4_large,
|
query.url('a[data-videopreview-mp4-large-value]', { attribute: 'data-videopreview-mp4-large-value' }),
|
||||||
videoData.webm_large,
|
query.url('a[data-videopreview-mp4-value]', { attribute: 'data-videopreview-mp4-value' }),
|
||||||
videoData.mp4,
|
].filter(Boolean);
|
||||||
videoData.webm,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
return release;
|
return release;
|
||||||
});
|
});
|
||||||
@@ -150,7 +144,7 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
release.tags = query.contents('div[data-controller] .genres');
|
release.tags = query.contents('a.genres');
|
||||||
|
|
||||||
const sourcesData = query.json('.video-container [data-videopreview-sources-value]', { attribute: 'data-videopreview-sources-value' });
|
const sourcesData = query.json('.video-container [data-videopreview-sources-value]', { attribute: 'data-videopreview-sources-value' });
|
||||||
|
|
||||||
@@ -175,7 +169,7 @@ async function scrapeScene({ query }, { url, entity }) {
|
|||||||
|| query.attribute('meta[property="og:video"]')
|
|| query.attribute('meta[property="og:video"]')
|
||||||
|| query.video('video[data-videocontainer-target] source');
|
|| query.video('video[data-videocontainer-target] source');
|
||||||
|
|
||||||
release.photos = query.sourceSets('div[data-controller] a[href^="/photos"] img').map((sourceSet) => sourceSet.map((src) => ({
|
release.photos = query.sourceSets('a[href^="/photos"] img').map((sourceSet) => sourceSet.map((src) => ({
|
||||||
src,
|
src,
|
||||||
expectType: {
|
expectType: {
|
||||||
'application/octet-stream': 'image/jpeg',
|
'application/octet-stream': 'image/jpeg',
|
||||||
|
|||||||
Reference in New Issue
Block a user