mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
fix(onedrive): downloadUrl missed on personal account (close #3276)
This commit is contained in:
parent
a985b748e9
commit
d0b743d955
@ -43,7 +43,7 @@ type File struct {
|
||||
}
|
||||
|
||||
type Object struct {
|
||||
model.ObjThumbURL
|
||||
model.ObjThumb
|
||||
ParentID string
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ func fileToObj(f File, parentID string) *Object {
|
||||
thumb = f.Thumbnails[0].Medium.Url
|
||||
}
|
||||
return &Object{
|
||||
ObjThumbURL: model.ObjThumbURL{
|
||||
ObjThumb: model.ObjThumb{
|
||||
Object: model.Object{
|
||||
ID: f.Id,
|
||||
Name: f.Name,
|
||||
@ -62,7 +62,7 @@ func fileToObj(f File, parentID string) *Object {
|
||||
IsFolder: f.File == nil,
|
||||
},
|
||||
Thumbnail: model.Thumbnail{Thumbnail: thumb},
|
||||
Url: model.Url{Url: f.Url},
|
||||
//Url: model.Url{Url: f.Url},
|
||||
},
|
||||
ParentID: parentID,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user