mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-23 02:27:07 +08:00
fix: mapping filename in GetName
some missed filename mapping
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/alist-org/alist/v3/pkg/utils"
|
||||
)
|
||||
|
||||
type Object struct {
|
||||
ID string
|
||||
@@ -12,7 +16,7 @@ type Object struct {
|
||||
}
|
||||
|
||||
func (o *Object) GetName() string {
|
||||
return o.Name
|
||||
return utils.MappingName(o.Name)
|
||||
}
|
||||
|
||||
func (o *Object) GetSize() int64 {
|
||||
|
||||
Reference in New Issue
Block a user