Skip to content

Update Kink.yml for USA users - #2832

Open
USAstephan2009 wants to merge 1 commit into
stashapp:masterfrom
USAstephan2009:patch-1
Open

Update Kink.yml for USA users#2832
USAstephan2009 wants to merge 1 commit into
stashapp:masterfrom
USAstephan2009:patch-1

Conversation

@USAstephan2009

Copy link
Copy Markdown

[Kink] Fix masked titles & tags (kink.com word-obfuscation)

Summary
kink.com now obfuscates "sensitive" words in its visible page content - titles in the h1, and category names in the scene's Categories section (e.g. "Pure S*********", "A***", "G*******"). This was breaking Title and Tags from this scraper.

Key finding: the obfuscation is not length-preserving and not reversible ("squirting" and "sadism" both render "S*****"; "blowjob" and "bondage" both render "B******"), so a display-text-to-name dictionary cannot be reliable.

Changes
Title - source from JSON-LD instead of the h1.
The scene's application/ld+json VideoObject block carries an always-unmasked "name". Verified on live pages:

h1 (masked): JSON-LD "name": D** Surrenders and Submits! Dom Surrenders and Submits! Pure S********* Pure Submission Janice Griffith ... P**** ... Janice Griffith ... Pussy ...

This mirrors the existing Details selector, which already reads the same VideoObject block.

Tags - scrape the /tag/ URL slug instead of anchor text, then map slug to name.
Category URLs are never masked and contain the full word ("/tag/anal-bdsm", "/tag/bondage", ...). The selector now takes @href, strips the domain / query string / channel suffix, and passes through a slug-to-display-name map (~245 entries) generated from the live kink.com and kinkmen.com tag directories. This also disambiguates words that collide when masked ("bbc"/"bbw", "blowjob"/"bondage", ...).

Verification
Only the Title and Tags blocks changed; all other fields and the driver section are byte-identical to upstream.
YAML parses cleanly; map size = 245 entries.
Masked examples now resolve correctly: A*** -> Anal, B****** -> Blowjob/Bondage (by slug), Double P********** -> Double Penetration, S***** -> Sadism/Squirting (by slug).
Notes for maintainers
The map is generated (script logic documented in the PR) and keys on kink.com + kinkmen.com slugs; kinkmen.com labels win on overlaps since scene URLs can point to either domain.
If a smaller footprint is preferred, the Title fix alone is a low-risk standalone change; the slug map is the only way to fully fix Tags while the site keeps obfuscating display text.

Noticed issues with Kink.com presenting **** in some tags, this yaml should correct that detection for other USA users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant