Fixed broken Bang properties.

This commit is contained in:
DebaucheryLibrarian
2026-11-08 23:40:50 +01:00
parent 1db0833794
commit ecacecfd62
+7 -13
View File
@@ -62,7 +62,7 @@ function scrapeAll(scenes, entity) {
release.title = query.content('a > span.block');
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) => ({
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 = [
videoData.mp4_large,
videoData.webm_large,
videoData.mp4,
videoData.webm,
];
}
release.teaser = [
query.url('a[data-videopreview-mp4-large-value]', { attribute: 'data-videopreview-mp4-large-value' }),
query.url('a[data-videopreview-mp4-value]', { attribute: 'data-videopreview-mp4-value' }),
].filter(Boolean);
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' });
@@ -175,7 +169,7 @@ 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((sourceSet) => sourceSet.map((src) => ({
release.photos = query.sourceSets('a[href^="/photos"] img').map((sourceSet) => sourceSet.map((src) => ({
src,
expectType: {
'application/octet-stream': 'image/jpeg',