From fcd9c59089ced497baa5b7cb4f15a57468f469b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <36558727+Xhofe@users.noreply.github.com> Date: Tue, 5 Jan 2021 16:40:02 +0800 Subject: [PATCH] =?UTF-8?q?:wrench:=20fix:=20#8=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E5=A4=9A=E4=B8=AA=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/config.go b/conf/config.go index 515790f7d9d..07db715f0eb 100644 --- a/conf/config.go +++ b/conf/config.go @@ -11,6 +11,14 @@ type Config struct { MusicImg string `yaml:"music_img" json:"music_img"` CheckUpdate bool `yaml:"check_update" json:"check_update"` Script string `yaml:"script" json:"script"` + Autoplay bool `yaml:"autoplay" json:"autoplay"` + Preview struct{ + Url string `yaml:"url" json:"url"` + PreProcess []string `yaml:"pre_process" json:"pre_process"` + Extensions []string `yaml:"extensions" json:"extensions"` + Text []string `yaml:"text" json:"text"` + MaxSize int `yaml:"max_size" json:"max_size"` + } `yaml:"preview" json:"preview"` } `yaml:"info"` Server struct{ Port string `yaml:"port"`//端口