refactor: use MTP API

This commit is contained in:
krau
2024-10-12 12:47:33 +08:00
parent 5ef7c5ce60
commit 5d6b1003e9
13 changed files with 183 additions and 357 deletions

View File

@@ -14,6 +14,6 @@ func initClient() {
ReqClient = req.NewClient().SetOutputDirectory(config.Cfg.Temp.BasePath).SetTimeout(86400 * time.Second)
}
func GetDownloadedFilePath(filename string) string {
func GetCacheFilePath(filename string) string {
return filepath.Join(config.Cfg.Temp.BasePath, filename)
}