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

Add Offical to Custom Scraper Code. Move multiple sites to Custom List #1876

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

pops64
Copy link
Contributor

@pops64 pops64 commented Nov 29, 2024

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.

  • Both the VRPHub sites while mainting their custom handling of these studios in its scraper code.
  • Updated PS-Porn to its new url and move it to custom.
  • Removed FuckPassVR SLR and moved it to a custom site.
  • Also setup the code for future moves from official to custom.

The new function add is MigrateFromOfficalToCustom(id string, url string, name string, company string, avatarUrl string, customId string, suffix string) where

  • id is the filename portion of the url
  • url is the full url of the studio
  • name, company, avatarUrl are pulled from the official list
  • customId is the internal code used by XBVR to designate which parent site the custom site is associtaed with. The following are the accepted inputs
    • povr
    • 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)

Due to a URL change on SLR it is needed to update the URL. Chose to migrate it to a custom scraper in addition to fix the URL. Will remove the scraper from the List if no scenes have been found for the PS-Porn scraper
Some final testing to due. Adds some sites that have mains available so users may set them to alts
Migrates any MasterSiteIds to its new custom id.
In case user create a custom site due to a URL change on the parent site. We shouldn't also create our own entry. This will check to ensure it doesn't exists and will only add if the new id isn't present
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