mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 12:58:45 +08:00

* perf(baidu_photo):multi-thread upload * perf(baidu_netdisk):multi-thread upload and cache optimization * fix:LimitWriter * fix(weiyun):only one login is allowed * feat(189pc):multi threaded upload * feat(baidu_netdisk):multi threaded upload * feat(baidu_photo):multi threaded upload * feat(weiyun):multi threaded upload * perf(aliyundriver_open):optimize upload code and optimize cache * fix(weiyun):invalid directory ID * fix(baidu_netdisk):modified time * fix(baidu_netdisk,baidu_photo):upload slice error * perf(baidu_netdisk):cancel unnecessary retries * fix(limitWriter):must return a non-nil error if it returns n < len(p) * fix(aliyundrive_open):Name and Filename only use one * perf(mopan):multi-thread upload
30 lines
798 B
Go
30 lines
798 B
Go
package weiyun
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
RootFolderID string `json:"root_folder_id"`
|
|
Cookies string `json:"cookies" required:"true"`
|
|
OrderBy string `json:"order_by" type:"select" options:"name,size,updated_at" default:"name"`
|
|
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
|
|
UploadThread string `json:"upload_thread" default:"4" help:"4<=thread<=32"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "WeiYun",
|
|
LocalSort: false,
|
|
OnlyProxy: true,
|
|
CheckStatus: true,
|
|
Alert: "",
|
|
NoOverwriteUpload: false,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &WeiYun{}
|
|
})
|
|
}
|