🎇 baidu disk support

This commit is contained in:
微凉
2022-02-02 17:32:11 +08:00
parent 7530d8f5b2
commit 6f14d0eb5c
6 changed files with 649 additions and 0 deletions

18
drivers/baidu/util.go Normal file
View File

@ -0,0 +1,18 @@
package baidu
import (
"net/url"
"strings"
"time"
)
func getTime(t int64) *time.Time {
tm := time.Unix(t, 0)
return &tm
}
func encodeURIComponent(str string) string {
r := url.QueryEscape(str)
r = strings.ReplaceAll(r, "+", "%20")
return r
}