Add Offical to Custom Scraper Code. Move multiple sites to Custom List #1876
+89
−30
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.
This code removes some sites from the official list so users may use them as alt sites instead of being forced out of the alt site functionality. The sites that have been moved are as follows. If no scene's are present it just removes the site all together.
The new function add is
MigrateFromOfficalToCustom(id string, url string, name string, company string, avatarUrl string, customId string, suffix string)
whereid
is the filename portion of the urlurl
is the full url of the studioname
,company
,avatarUrl
are pulled from the official listcustomId
is the internal code used by XBVR to designate which parent site the custom site is associtaed with. The following are the accepted inputspovr
slr
vrphub
vrporn
suffix
Is the portion attached to the site name for users to indentify the parent site. The current suffixes in use are(SLR)
(VRP Hub)
(POVR)
(VRPorn)