Skip to content

Commit 288ba2f

Browse files
chore(strm): remove excess parameters (#587)
1 parent f3920b0 commit 288ba2f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/strm/meta.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ type Addition struct {
99
Paths string `json:"paths" required:"true" type:"text"`
1010
SiteUrl string `json:"siteUrl" type:"text" required:"false" help:"The prefix URL of the strm file"`
1111
FilterFileTypes string `json:"filterFileTypes" type:"text" default:"strm" required:"false" help:"Supports suffix name of strm file"`
12-
UseSign bool `json:"signPath" default:"true" required:"true" help:"sign the path in the strm file"`
1312
EncodePath bool `json:"encodePath" default:"true" required:"true" help:"encode the path in the strm file"`
1413
}
1514

@@ -27,7 +26,6 @@ func init() {
2726
op.RegisterDriver(func() driver.Driver {
2827
return &Strm{
2928
Addition: Addition{
30-
UseSign: true,
3129
EncodePath: true,
3230
},
3331
}

drivers/strm/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (d *Strm) getLink(ctx context.Context, path string) string {
137137
if d.EncodePath {
138138
path = utils.EncodePath(path, true)
139139
}
140-
if !d.UseSign {
140+
if !d.EnableSign {
141141
return fmt.Sprintf("%s/d%s", apiUrl, path)
142142
}
143143

0 commit comments

Comments
 (0)