diff --git a/drivers/strm/meta.go b/drivers/strm/meta.go index b4aa94a3..95bbe068 100644 --- a/drivers/strm/meta.go +++ b/drivers/strm/meta.go @@ -9,7 +9,6 @@ type Addition struct { Paths string `json:"paths" required:"true" type:"text"` SiteUrl string `json:"siteUrl" type:"text" required:"false" help:"The prefix URL of the strm file"` FilterFileTypes string `json:"filterFileTypes" type:"text" default:"strm" required:"false" help:"Supports suffix name of strm file"` - UseSign bool `json:"signPath" default:"true" required:"true" help:"sign the path in the strm file"` EncodePath bool `json:"encodePath" default:"true" required:"true" help:"encode the path in the strm file"` } @@ -27,7 +26,6 @@ func init() { op.RegisterDriver(func() driver.Driver { return &Strm{ Addition: Addition{ - UseSign: true, EncodePath: true, }, } diff --git a/drivers/strm/util.go b/drivers/strm/util.go index b2294580..ce5e5339 100644 --- a/drivers/strm/util.go +++ b/drivers/strm/util.go @@ -137,7 +137,7 @@ func (d *Strm) getLink(ctx context.Context, path string) string { if d.EncodePath { path = utils.EncodePath(path, true) } - if !d.UseSign { + if !d.EnableSign { return fmt.Sprintf("%s/d%s", apiUrl, path) }