Fixed Kink scraper returning commas in tags.
This commit is contained in:
parent
dda72701f6
commit
a6b2608a83
|
|
@ -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; });
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue