mirror of https://github.com/Xhofe/alist
37 lines
855 B
Go
37 lines
855 B
Go
package doubao
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
// Usually one of two
|
|
// driver.RootPath
|
|
driver.RootID
|
|
// define other
|
|
Cookie string `json:"cookie" type:"text"`
|
|
UploadThread string `json:"upload_thread" default:"3"`
|
|
DownloadApi string `json:"download_api" type:"select" options:"get_file_url,get_download_info" default:"get_file_url"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Doubao",
|
|
LocalSort: true,
|
|
OnlyLocal: false,
|
|
OnlyProxy: false,
|
|
NoCache: false,
|
|
NoUpload: false,
|
|
NeedMs: false,
|
|
DefaultRoot: "0",
|
|
CheckStatus: false,
|
|
Alert: "",
|
|
NoOverwriteUpload: false,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Doubao{}
|
|
})
|
|
}
|