Compare commits

...

2 Commits

Author SHA1 Message Date
0cd4624a36 🆕 新版本 2021-01-05 16:51:31 +08:00
fcd9c59089 🔧 fix: #8 增加了多个文件预览 2021-01-05 16:40:02 +08:00
2 changed files with 9 additions and 1 deletions

View File

@ -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"`//端口

View File

@ -18,7 +18,7 @@ var(
var Conf = new(Config)
const (
VERSION="v0.1.3"
VERSION="v0.1.4"
ImageThumbnailProcess="image/resize,w_50"
VideoThumbnailProcess="video/snapshot,t_0,f_jpg,w_50"