From 29e91ed6b8fce4cfb9cc58ebab149916a39b2eac Mon Sep 17 00:00:00 2001 From: theRealKLH <65736720+theRealKLH@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:21:34 -0400 Subject: [PATCH] scraper: update darkroomvr filename template DarkroomVR changed naming convention of it's downloads --- pkg/scrape/darkroomvr.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/scrape/darkroomvr.go b/pkg/scrape/darkroomvr.go index cbb1b783c..36feb894f 100644 --- a/pkg/scrape/darkroomvr.go +++ b/pkg/scrape/darkroomvr.go @@ -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