Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The main change adds extra rules for matching to Stashdb.
Currently, to match scenes to Stashdb, the URLs are used to match (optionally with regex expressions to extract the matching values). For some sites this does not work well, particularly when using an aggregator site like SLR or VRPorn, to a main site, Wetvr. The scene URL for eg Wetvr. The scene URLS in Stashdb are unlikely to match the URL scraped from SLR, etc.
This change allows the user to specify additional rules to match scenes to Stashdb.
Multiple rules can be specified, and they will be evaluated in the sequence, they appear. e.g. you can specify "title/date" and just "title", but you should specify "title/date" date first as it is more specific.
These rules are not as strict as the URL matching and could lead to false matches. The balance between wanting correct matches vs more unmatched scenes is a matter of preference, so this change is for the users to decide for themselves whether to use them. Existing matching remains unchanged.
Additional change:
You can also specify matching rules of an XBVR site to multiple Stashdb sites. This is maybe useful where scenes are moved between studios, or if an aggregator has one site but is actually multiple sites in Stashdb. e.g. you could setup a custom scraper to Thundercock on VRPorn, this is NuaghtyAmerica site which in the past use to be Big Cock Billy, so when search Stashdb, you could search both Thundercock or Big Cock Billy.
Example json mapping Thundercock to 2 stash studios using the title (note: the name tags are for commentary and not required)
I'll try and find time to set up a wiki article.
Also requires #1889 to fix bug with rules not been loaded