Skip to content

Commit

Permalink
[修复]云南古籍双页排序
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudw committed Sep 15, 2023
1 parent a3a1ce8 commit 64d75bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/dzicnlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ func (r DziCnLib) getCanvases(sUrl string, jar *cookiejar.Jar) (canvases []strin

canvases = make([]string, 0, len(result.Tiles))
for key, item := range result.Tiles {
k := regexp.MustCompile(`(\d+)`).FindString(key)
i, _ := strconv.Atoi(k)
sortId := fmt.Sprintf("%s.json", util.GenNumberSorted(i))
sortId := fmt.Sprintf("%s.json", key)
dest := config.GetDestPath(r.dt.Url, r.dt.BookId, sortId)
serverUrl := fmt.Sprintf("%s/tiles/%s/", r.ServerHost, key)
if r.Extention == "" {
Expand Down

0 comments on commit 64d75bb

Please sign in to comment.