Browse Source

新增共享字幕选项

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
69c84587bd

+ 1 - 0
internal/pkg/settings/experimental_function.go

@@ -7,6 +7,7 @@ type ExperimentalFunction struct {
 	RemoteChromeSettings RemoteChromeSettings `json:"remote_chrome_settings"`
 	ApiKeySettings       ApiKeySettings       `json:"api_key_settings"`
 	LocalChromeSettings  LocalChromeSettings  `json:"local_chrome_settings"`
+	ShareSubSettings     ShareSubSettings     `json:"share_sub_settings"`
 }
 
 func NewExperimentalFunction() *ExperimentalFunction {

+ 5 - 0
internal/pkg/settings/share_sub_settings.go

@@ -0,0 +1,5 @@
+package settings
+
+type ShareSubSettings struct {
+	ShareSubEnabled bool `json:"share_sub_enabled"`
+}

+ 1 - 0
internal/types/common/constvalue.go

@@ -18,6 +18,7 @@ const (
 	SubSiteShooter = "shooter"
 	SubSiteXunLei  = "xunlei"
 	SubSiteAssrt   = "assrt"
+	SubSiteA4K     = "a4k"
 )
 
 const (