mirror of
https://github.com/alist-org/alist.git
synced 2026-06-05 21:04:08 +08:00
fix(guangyapan): resolve offline root folder lookup (#9516)
This commit is contained in:
parent
71082f013a
commit
de56968a2d
@ -39,7 +39,11 @@ func (d *GuangYaPan) OfflineDownload(ctx context.Context, fileURL string, parent
|
||||
}
|
||||
|
||||
parentID := parentDir.GetID()
|
||||
if parentID == d.RootFolderID {
|
||||
rootID, err := d.getRootFolderID(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if parentID == rootID {
|
||||
parentID = ""
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user