2022-10-07 12:36:56 +00:00
|
|
|
package google_photo
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
|
|
|
driver.RootID
|
|
|
|
RefreshToken string `json:"refresh_token" required:"true"`
|
|
|
|
ClientID string `json:"client_id" required:"true" default:"202264815644.apps.googleusercontent.com"`
|
|
|
|
ClientSecret string `json:"client_secret" required:"true" default:"X4Z3ca8xfWDb1Voo-F9a7ZxJ"`
|
2022-10-18 07:19:05 +00:00
|
|
|
ShowArchive bool `json:"show_archive"`
|
2022-10-07 12:36:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
|
|
|
Name: "GooglePhoto",
|
|
|
|
OnlyProxy: true,
|
|
|
|
DefaultRoot: "root",
|
|
|
|
NoUpload: true,
|
|
|
|
LocalSort: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &GooglePhoto{}
|
|
|
|
})
|
2022-10-07 12:36:56 +00:00
|
|
|
}
|