mirror of https://github.com/Xhofe/alist
feat: ipa name decode
parent
4ae81b5a79
commit
b44243c021
|
@ -35,6 +35,10 @@ func Plist(c *gin.Context) {
|
|||
ipaIndex := strings.Index(name, ".ipa")
|
||||
if ipaIndex != -1 {
|
||||
name = name[:ipaIndex]
|
||||
decodeName, err := url.PathUnescape(name)
|
||||
if err == nil {
|
||||
name = decodeName
|
||||
}
|
||||
}
|
||||
name = strings.ReplaceAll(name, "<", "[")
|
||||
name = strings.ReplaceAll(name, ">", "]")
|
||||
|
|
Loading…
Reference in New Issue