Fixed Kink profile scraper returning partial matches. Removed parent from BAM Visions and Vogov.

This commit is contained in:
DebaucheryLibrarian
2020-07-14 21:21:27 +02:00
parent 9a6ab35c21
commit 90fc7a0d9d
11 changed files with 2 additions and 10 deletions

View File

@@ -152,7 +152,7 @@ async function fetchProfile(actorName, entity, include) {
const searchRes = await qu.getAll(`https://kink.com/search?type=performers&q=${actorName}`, '.model');
if (searchRes.ok) {
const actorItem = searchRes.items.find(() => qu.query.exists(`.model-link img[alt="${actorName}"]`));
const actorItem = searchRes.items.find(item => item.query.exists(`.model-link img[alt="${actorName}"]`));
if (actorItem) {
const actorPath = actorItem.query.url('.model-link');

View File

@@ -132,7 +132,7 @@ function scrapeScene(html, url) {
release.tags = qu.all('.info-video-category a', true);
release.photos = qu.urls('.swiper-wrapper .swiper-slide a').map(source => source.replace('.jpg/', '.jpg'));
release.poster = qu.meta('meta[property="og:image"');
release.poster = qu.meta('meta[property="og:image"]');
if (!release.poster) {
const previewStart = html.indexOf('preview_url');