Просмотр исходного кода

新增 subtitle_best 的配置信息

Signed-off-by: allan716 <[email protected]>
allan716 2 лет назад
Родитель
Сommit
8945284d5f

+ 0 - 1
internal/backend/base_router.go

@@ -138,7 +138,6 @@ func InitRouter(
 		GroupV1.GET("/preview/segments/:resolution/:segment/:videofpathbase64", cbV1.HlsSegment)
 		GroupV1.POST("/preview/search_other_web", cbV1.PreviewSearchOtherWeb)
 		GroupV1.POST("/preview/video_f_path_2_imdb_info", cbV1.PreviewVideoFPath2IMDBInfo)
-
 	}
 
 	GroupAPIV1 := router.Group("/api/v1")

+ 6 - 0
pkg/settings/subtitle_best.go

@@ -0,0 +1,6 @@
+package settings
+
+type SubtitleBestSettings struct {
+	Enabled bool   `json:"enabled"`
+	ApiKey  string `json:"api_key"`
+}

+ 2 - 1
pkg/settings/subtitle_sources.go

@@ -1,7 +1,8 @@
 package settings
 
 type SubtitleSources struct {
-	AssrtSettings AssrtSettings `json:"assrt_settings"`
+	AssrtSettings        AssrtSettings        `json:"assrt_settings"`
+	SubtitleBestSettings SubtitleBestSettings `json:"subtitle_best_settings"`
 }
 
 func NewSubtitleSources() *SubtitleSources {