From c85a4ad56592f1ba4e59dfd082508fb95021962f Mon Sep 17 00:00:00 2001 From: ilanyu Date: Wed, 16 Feb 2022 19:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=83=A8=E5=88=86=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0m3u8?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- m3u8-downloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m3u8-downloader.go b/m3u8-downloader.go index 8aa3d33..9df282e 100644 --- a/m3u8-downloader.go +++ b/m3u8-downloader.go @@ -142,7 +142,7 @@ func getHost(Url, ht string) (host string) { checkErr(err) switch ht { case "apiv1": - host = u.Scheme + "://" + u.Host + path.Dir(u.RawPath) + host = u.Scheme + "://" + u.Host + path.Dir(u.EscapedPath()) case "apiv2": host = u.Scheme + "://" + u.Host }