修复封面保存时番号未补全三位的问题
This commit is contained in:
parent
418d08a7e8
commit
5b102255d0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user