From 2934da4c44f78e3bad7cc17bd2e0ca1d288a99de Mon Sep 17 00:00:00 2001 From: vt-idiot <81622808+vt-idiot@users.noreply.github.com> Date: Mon, 15 May 2023 21:53:53 -0400 Subject: [PATCH] Update heresphere.go Testing a fix for scene titles with `%` in them. --- pkg/api/heresphere.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), }, }, }