chore(quark_uc): WebProxy enabled by default

This commit is contained in:
j2rong4cn
2025-07-02 16:37:56 +08:00
parent c0f69f7fa7
commit d707f002eb
2 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,14 @@ func (d *QuarkOrUC) GetAddition() driver.Additional {
func (d *QuarkOrUC) Init(ctx context.Context) error {
_, err := d.request("/config", http.MethodGet, nil, nil)
if err == nil {
if d.AdditionVersion != 1 {
d.AdditionVersion = 1
if !d.UseTransCodingAddress {
d.WebProxy = true
}
}
}
return err
}

View File

@ -12,6 +12,7 @@ type Addition struct {
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
UseTransCodingAddress bool `json:"use_transcoding_address" help:"You can watch the transcoded video and support 302 redirection" required:"true" default:"false"`
OnlyListVideoFile bool `json:"only_list_video_file" default:"false"`
AdditionVersion int
}
type Conf struct {