Removed poster query that would select unrelated image from Score scraper.

This commit is contained in:
DebaucheryLibrarian
2026-02-17 01:55:28 +01:00
parent 8e77a5ef46
commit 3368e2b343

View File

@@ -164,7 +164,8 @@ function scrapeScene({ query }, url) {
release.tags = query.contents('.p-desc a[href*="tag/"], .desc a[href*="tag/"]');
const style = query.content('.vp style');
const poster = query.img('#videos_page-page .item-img img') || style?.match(/background-image: url\('(http[\w.:/_-]+)'\);/)?.[1];
// const poster = query.img('#videos_page-page .item-img img') || style?.match(/background-image: url\('(http[\w.:/_-]+)'\);/)?.[1];
const poster = style?.match(/background-image: url\('(http[\w.:/_-]+)'\);/)?.[1];
const fallbackPoster = resizeSrc(query.img('meta[itemprop="image"]', { attribute: 'content' })); // usually a different image
const photos = query.all('.gallery .thumb').map((imgEl) => {