Skip to content

Commit

Permalink
scraper: fix filenames when scraping a single scene from SLR (xbapps#…
Browse files Browse the repository at this point in the history
…1738)

Forces siteID to populate in filename when scraping a single scene
  • Loading branch information
vt-idiot authored Jun 4, 2024
1 parent 20d001a commit fd1280e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scrape/slrstudios.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ func appendFilenames(sc *models.ScrapedScene, siteID string, filenameRegEx *rege
// Only shown for logged in users so need to generate them
// Format: SLR_siteID_Title_<Resolutions>_SceneID_<LR/TB>_<180/360>.mp4
if !isTransScene {
// Force siteID when scraping individual scenes without a custom site
if siteID == "" {
siteID = gjson.Get(JsonMetadataA, "paysite.name").String()
}
viewAngle := gjson.Get(JsonMetadataA, "viewAngle").String()
projSuffix := "_LR_180.mp4"
if viewAngle == "190" || viewAngle == "200" || viewAngle == "220" {
Expand Down

0 comments on commit fd1280e

Please sign in to comment.