修复封面保存时番号未补全三位的问题

This commit is contained in:
fantasticbin 2025-03-05 19:12:10 +08:00
parent 418d08a7e8
commit 5b102255d0

View File

@ -144,7 +144,7 @@ func (c *Crawler) fetchCoverImg(code coverCode) error {
imgUrl := strings.ReplaceAll(c.config.GetString("crawler.url"), `*`, codeStr)
suffix := filepath.Ext(imgUrl)
fileName := filepath.Join(c.outputPath, fmt.Sprintf("%s-%d%s",
fileName := filepath.Join(c.outputPath, fmt.Sprintf("%s-%03d%s",
strings.ToUpper(code.letters),
code.number,
suffix,