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');