mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 17:38:07 +08:00
chore(quark_uc): WebProxy
enabled by default
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user