Revert: alsit sign

pull/134/head
zijiren233 2 years ago
parent 80225e22bb
commit a5f0dea761

@ -7,7 +7,6 @@ import (
"fmt" "fmt"
"io" "io"
"net/http" "net/http"
"net/url"
"time" "time"
"github.com/synctv-org/synctv/internal/db" "github.com/synctv-org/synctv/internal/db"
@ -179,18 +178,8 @@ func NewAlistMovieCacheInitFunc(movie *model.Movie) func(ctx context.Context, ar
return nil, fmt.Errorf("path is dir: %s", truePath) return nil, fmt.Errorf("path is dir: %s", truePath)
} }
u, err := url.Parse(fg.RawUrl)
if err != nil {
return nil, fmt.Errorf("parse url error: %s", fg.RawUrl)
}
if fg.Sign != "" {
query := url.Values{}
query.Set("sign", fg.Sign)
u.RawQuery = query.Encode()
}
cache := &AlistMovieCacheData{ cache := &AlistMovieCacheData{
URL: u.String(), URL: fg.RawUrl,
} }
if fg.Provider == "AliyundriveOpen" { if fg.Provider == "AliyundriveOpen" {
fo, err := cli.FsOther(ctx, &alist.FsOtherReq{ fo, err := cli.FsOther(ctx, &alist.FsOtherReq{

Loading…
Cancel
Save