mirror of
https://github.com/AlistGo/alist.git
synced 2025-11-25 19:37:41 +08:00
18 lines
374 B
Go
18 lines
374 B
Go
|
|
package bootstrap
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/alist-org/alist/v3/internal/offline_download/tool"
|
||
|
|
"github.com/alist-org/alist/v3/pkg/utils"
|
||
|
|
)
|
||
|
|
|
||
|
|
func InitOfflineDownloadTools() {
|
||
|
|
for k, v := range tool.Tools {
|
||
|
|
res, err := v.Init()
|
||
|
|
if err != nil {
|
||
|
|
utils.Log.Warnf("init tool %s failed: %s", k, err)
|
||
|
|
} else {
|
||
|
|
utils.Log.Infof("init tool %s success: %s", k, res)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|