Skip to content

Commit

Permalink
Merge branch 'darkroom_09_01' into RFTW
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealKLH committed Sep 30, 2023
2 parents 9cd8595 + 29e91ed commit 5f98c56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/scrape/darkroomvr.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ func DarkRoomVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out c

// Filenames (only a guess for now, according to the sample files)
suffixes := []string{"4k", "5k", "5k10", "6k", "7k", "960p", "1440p", "psvr_1440p"}
release := strings.TrimSuffix(e.ChildAttr(`meta[property="og:video"]`, "content"), "-ws_4k.mp4")
relname := release[strings.LastIndex(release, "/")+1:]
for _, suffix := range suffixes {
sc.Filenames = append(sc.Filenames, "release-"+sc.SiteID+"-"+suffix+".mp4")
sc.Filenames = append(sc.Filenames, relname+"-"+suffix+".mp4")
}

// trailer details
Expand Down

0 comments on commit 5f98c56

Please sign in to comment.