Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually link Scenes and Actors to Stashdb #1888

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

toshski
Copy link
Contributor

@toshski toshski commented Dec 28, 2024

This change allows users to manually link Scenes or Actors with Stashdb. A list of possible matches is presented to the user to choose. The Title/Name in the result list is a hyperlink to tahe the user to the Stashdb entry to check details further. In the Performer list, the studios displayed are also hyperlinks that will take you to the scenes, for that studio, for the selected performer.

Different fields are used in matching with a weighting to decide the order to present the list. e.g. the performers name matching will have a high weighting, the performers alias matching will increase the weighting but not as much as the name matching, likewise matching studios between XBVR and Stashdb that the actor has performed in increases weighting.

The same approach is used for scenes, just different fields, eg title, release date, duration, actors in the scenes. Only scenes from the studio/s are searched. If required multiple studios to search for an xbvr site can be specified in the actor_scraper_custom_config.json file. Note: however, search takes a few seconds, that has to be repeated for each site setup and can become quite slow, very quickly.

The Scene Title or Actor Name are the defaults used in the search, but the user can put in their own search string.

The user may also search by specifying the Stashdb Id or URL to link to a specific scene or performer they want. Note: if matching to a specific scene, the Stashdb studio does not have to match the XBVR site.

Scenes/Performers are queried from Stashdb and then the XBVR match weighting is applied. The number of scenes requested from Stashdb is limited for performance reasons, a scene or actor can be in Stash but may not be returned in the page of results from Stash and therefore will not appear in the result list. Therefore, at times an obvious match is not shown, and other times the highest match suggested may bear very little resemblance but on investigating as in fact the correct match, the joys of matching. Usually, if I don't see a match in the first half dozen matches I check directory in Stashdb and then copy the Id if I find it there.

When searching scenes from the Scene Detail in XBVR, the result list is positioned so you can compare the Scene description in the result list with the XBVR scene description. If the XBVR scene does not have a Description the result list is positioned so you can compare the scene images.

This mod requires #1886 which enables multiple Stashdb Studios to be configured to be searched for one XBVR site.
Also requires #1889 to fix bug with rules not been loaded

@crwxaj crwxaj merged commit 8137aee into xbapps:master Jan 17, 2025
1 check passed
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.

2 participants