Skip to content

Commit a52aaa7

Browse files
committed
防止重复
1 parent 7fc556c commit a52aaa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
const (
10-
Version string = "0.10.0"
10+
Version string = "0.10.1"
1111
)
1212

1313
var VersionCmd = &cobra.Command{

sources/kemono/kemono.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (k *Kemono) GetCommonSourceURL(url string) string {
7474
}
7575

7676
func (k *Kemono) GetFileName(artwork *types.Artwork, picture *types.Picture) string {
77-
return artwork.Title + "_" + strconv.Itoa(int(picture.Index)) + filepath.Ext(picture.Original)
77+
return artwork.Title + "_" + strconv.Itoa(int(picture.Index)) + "_" + filepath.Base(picture.Original)
7878
}
7979

8080
func (k *Kemono) Config() *config.SourceCommonConfig {

0 commit comments

Comments
 (0)