上下文中只被引用了一次,看起来像是用于避免二次解析 exts,但是比较差异后,没有被赋为新的值
Cloudreve/pkg/thumb/vips.go
Lines 20 to 30 in 3edb00a
| | typeVipsGeneratorstruct { |
| | exts []string |
| | lastRawExtsstring |
| | } |
| | |
| | func (v*VipsGenerator) Generate(ctx context.Context, file io.Reader, src, namestring, optionsmap[string]string) (*Result, error) { |
| | vipsOpts:=model.GetSettingByNames("thumb_vips_path", "thumb_vips_exts", "thumb_encode_quality", "thumb_encode_method", "temp_path") |
| | |
| | ifv.lastRawExts!=vipsOpts["thumb_vips_exts"] { |
| | v.exts=strings.Split(vipsOpts["thumb_vips_exts"], ",") |
| | } |
Cloudreve/pkg/thumb/ffmpeg.go
Lines 21 to 31 in 3edb00a
| | typeFfmpegGeneratorstruct { |
| | exts []string |
| | lastRawExtsstring |
| | } |
| | |
| | func (f*FfmpegGenerator) Generate(ctx context.Context, file io.Reader, src, namestring, optionsmap[string]string) (*Result, error) { |
| | ffmpegOpts:=model.GetSettingByNames("thumb_ffmpeg_path", "thumb_ffmpeg_exts", "thumb_ffmpeg_seek", "thumb_encode_method", "temp_path") |
| | |
| | iff.lastRawExts!=ffmpegOpts["thumb_ffmpeg_exts"] { |
| | f.exts=strings.Split(ffmpegOpts["thumb_ffmpeg_exts"], ",") |
| | } |
Cloudreve/pkg/thumb/libreoffice.go
Lines 21 to 31 in 3edb00a
| | typeLibreOfficeGeneratorstruct { |
| | exts []string |
| | lastRawExtsstring |
| | } |
| | |
| | func (l*LibreOfficeGenerator) Generate(ctx context.Context, file io.Reader, srcstring, namestring, optionsmap[string]string) (*Result, error) { |
| | sofficeOpts:=model.GetSettingByNames("thumb_libreoffice_path", "thumb_libreoffice_exts", "thumb_encode_method", "temp_path") |
| | |
| | ifl.lastRawExts!=sofficeOpts["thumb_libreoffice_exts"] { |
| | l.exts=strings.Split(sofficeOpts["thumb_libreoffice_exts"], ",") |
| | } |
1条答案
按热度按时间nbnkbykc1#
感谢反馈,是一个bug