Fixed Kink profile scraper returning partial matches. Removed parent from BAM Visions and Vogov.
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user