From 3abe26473c03df952864cbe27ac9da7b146315fb Mon Sep 17 00:00:00 2001 From: Night Space <63776734+NightSpaceC@users.noreply.github.com> Date: Sun, 19 Mar 2023 15:25:06 +0800 Subject: [PATCH] fix(trainbit): decode html code (#3883) --- drivers/trainbit/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/trainbit/util.go b/drivers/trainbit/util.go index 3f70e526..91f7fb8f 100644 --- a/drivers/trainbit/util.go +++ b/drivers/trainbit/util.go @@ -1,6 +1,7 @@ package trainbit import ( + "html" "io" "net/http" "net/url" @@ -95,6 +96,7 @@ func local2provider(filename string, isFolder bool) string { } func provider2local(filename string) string { + filename = html.UnescapeString(filename) index := strings.LastIndex(filename, ".delete_suffix") if index != -1 { filename = filename[:index]