mirror of https://github.com/Xhofe/alist
fix(trainbit): decode html code (#3883)
parent
023107226c
commit
3abe26473c
|
@ -1,6 +1,7 @@
|
||||||
package trainbit
|
package trainbit
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"html"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
@ -95,6 +96,7 @@ func local2provider(filename string, isFolder bool) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func provider2local(filename string) string {
|
func provider2local(filename string) string {
|
||||||
|
filename = html.UnescapeString(filename)
|
||||||
index := strings.LastIndex(filename, ".delete_suffix")
|
index := strings.LastIndex(filename, ".delete_suffix")
|
||||||
if index != -1 {
|
if index != -1 {
|
||||||
filename = filename[:index]
|
filename = filename[:index]
|
||||||
|
|
Loading…
Reference in New Issue