mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 03:48:46 +08:00

* feat: add the support for Trainbit read only * feat: add the support for Trainbit modify the structure of code allow to create folder, move, rename and remove * feat: add the support for Trainbit allow to upload file * feat: add the support for Trainbit get token from page * feat: add the support for Trainbit display progress of updating * feat: add the support for Trainbit fix bug of time zone * feat: add the support for Trainbit fix the bug of filename
30 lines
578 B
Go
30 lines
578 B
Go
package trainbit
|
|
|
|
import (
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
driver.RootID
|
|
AUSHELLPORTAL string `json:"AUSHELLPORTAL" required:"true"`
|
|
ApiKey string `json:"apikey" required:"true"`
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "Trainbit",
|
|
LocalSort: false,
|
|
OnlyLocal: false,
|
|
OnlyProxy: false,
|
|
NoCache: false,
|
|
NoUpload: false,
|
|
NeedMs: false,
|
|
DefaultRoot: "0_000",
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Trainbit{}
|
|
})
|
|
}
|