mirror of https://github.com/Xhofe/alist
				
				
				
			
		
			
				
	
	
		
			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)
 | |
| 		}
 | |
| 	}
 | |
| }
 |