diff --git a/.gitpod.yml b/.gitpod.yml index a9927a8b1..7140257e5 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,7 +2,7 @@ image: file: .gitpod.dockerfile tasks: - name: Continuous Build - command: cd /workspace/xbvr && yarn dev + command: yarn global add concurrently && go install github.com/cosmtrek/air@latest && cd /workspace/xbvr && go generate && go get && yarn && yarn dev ports: - port: 9999 onOpen: open-preview diff --git a/pkg/api/heresphere.go b/pkg/api/heresphere.go index dd86f3f6c..68122318a 100644 --- a/pkg/api/heresphere.go +++ b/pkg/api/heresphere.go @@ -221,7 +221,7 @@ func (i HeresphereResource) getHeresphereFile(req *restful.Request, resp *restfu Height: height, Width: width, Size: file.Size, - URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v/%v", getProto(req), req.Request.Host, file.ID, file.Filename, dnt), + URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v", getProto(req), req.Request.Host, file.ID, dnt), }, }, }) @@ -335,7 +335,7 @@ func (i HeresphereResource) getHeresphereScene(req *restful.Request, resp *restf Height: height, Width: width, Size: file.Size, - URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v/%v", getProto(req), req.Request.Host, file.ID, scene.GetFunscriptTitle(), dnt), + URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v", getProto(req), req.Request.Host, file.ID, dnt), }, }, } diff --git a/pkg/scrape/javdatabase.go b/pkg/scrape/javdatabase.go index 8ae94407c..a94cf1829 100644 --- a/pkg/scrape/javdatabase.go +++ b/pkg/scrape/javdatabase.go @@ -25,7 +25,7 @@ func ScrapeJavDB(out *[]models.ScrapedScene, queryString string) { // Cast html.ForEach("h2.subhead", func(id int, h2 *colly.HTMLElement) { - if h2.Text == "Featured Idols" { + if strings.HasSuffix(h2.Text, "Actress/Idols") { dom := h2.DOM parent := dom.Parent() if parent != nil {