Fixed Kink scraper returning commas in tags.

This commit is contained in:
DebaucheryLibrarian 2025-12-28 06:40:17 +01:00
parent dda72701f6
commit a6b2608a83
2 changed files with 3 additions and 2 deletions

View File

@ -2758,7 +2758,8 @@ const priorities = [ // higher index is higher priority
['threesome', 'mfm', 'mff', 'trainbang', 'pissing'], ['threesome', 'mfm', 'mff', 'trainbang', 'pissing'],
['anal', 'bukkake'], ['anal', 'bukkake'],
['dp', 'dap', 'triple-penetration', 'tap', 'dvp', 'tvp', 'airtight'], ['dp', 'dap', 'triple-penetration', 'tap', 'dvp', 'tvp', 'airtight'],
['gangbang', 'blowbang', 'orgy'], ['blowbang', 'orgy'],
['gangbang'],
['gay', 'transsexual', 'bisexual', 'hentai'], ['gay', 'transsexual', 'bisexual', 'hentai'],
].reduce((acc, slugs, index) => { ].reduce((acc, slugs, index) => {
slugs.forEach((slug) => { acc[slug] = index; }); slugs.forEach((slug) => { acc[slug] = index; });

View File

@ -134,7 +134,7 @@ function scrapeScene({ query }, url, entity) {
`https://cdnp.kink.com/imagedb/${release.entryId}/trailer/${release.entryId}_trailer_high.mp4`, `https://cdnp.kink.com/imagedb/${release.entryId}/trailer/${release.entryId}_trailer_high.mp4`,
]; ];
release.tags = query.contents('#shootPage a[href*="/tag"]').map((tag) => tag.trim()); release.tags = query.contents('#shootPage a[href*="/tag"]').map((tag) => tag.replace(',', '').trim());
release.channel = data?.channelName?.name || slugify(query.url('.shoot-detail-legend a[href*="/channel"]')?.split('/').slice(-1)[0], ''); release.channel = data?.channelName?.name || slugify(query.url('.shoot-detail-legend a[href*="/channel"]')?.split('/').slice(-1)[0], '');
release.qualities = data?.resolutions release.qualities = data?.resolutions