Skip to content

Commit

Permalink
chore: enable SLR trailers (#1036)
Browse files Browse the repository at this point in the history
Co-authored-by: crwxaj <crwxaj>
  • Loading branch information
crwxaj authored Nov 23, 2022
1 parent 60ccc36 commit 6e97f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions pkg/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1043,12 +1043,10 @@ func Migrate() {
if baseUrl[0] == `https://www.sexlikereal.com/` {
scene.TrailerType = "slr"
scene.TrailerSource = `https://api.sexlikereal.com/virtualreality/video/id/` + id
continue
}
if baseUrl[0] == `https://vrporn.com/` {
scene.TrailerType = "scrape_html"
scene.TrailerSource = `{"scene_url":"` + scene.SceneURL + `","html_element":"dl8-video source","extract_regex":"","content_base_url":"","record_path":"","content_path":"src","encoding_path":"","quality_path":"quality"}`
continue
}

switch scene.Site {
Expand Down
4 changes: 2 additions & 2 deletions pkg/scrape/slrstudios.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func SexLikeReal(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
// jsonStr, _ := json.Marshal(jsonRequest)
// sc.TrailerSrc = string(jsonStr)

// sc.TrailerType = "slr"
// sc.TrailerSrc = "https://api.sexlikereal.com/virtualreality/video/id/" + sc.SiteID
sc.TrailerType = "slr"
sc.TrailerSrc = "https://api.sexlikereal.com/virtualreality/video/id/" + sc.SiteID

// Extract from JSON meta data
// NOTE: SLR only provides certain information like duration as json metadata inside a script element
Expand Down

0 comments on commit 6e97f8e

Please sign in to comment.