mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 19:19:41 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c833acbf |
@@ -2,6 +2,7 @@ package common
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/imroc/req/v3"
|
"github.com/imroc/req/v3"
|
||||||
"github.com/krau/SaveAny-Bot/config"
|
"github.com/krau/SaveAny-Bot/config"
|
||||||
@@ -10,7 +11,7 @@ import (
|
|||||||
var ReqClient *req.Client
|
var ReqClient *req.Client
|
||||||
|
|
||||||
func initClient() {
|
func initClient() {
|
||||||
ReqClient = req.NewClient().SetOutputDirectory(config.Cfg.Temp.BasePath)
|
ReqClient = req.NewClient().SetOutputDirectory(config.Cfg.Temp.BasePath).SetTimeout(86400 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetDownloadedFilePath(filename string) string {
|
func GetDownloadedFilePath(filename string) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user