Fixed various Bugs

This commit is contained in:
Pablu23
2024-04-03 16:12:44 +02:00
parent cb592c7109
commit 58344d4def
9 changed files with 62 additions and 57 deletions

View File

@@ -223,15 +223,10 @@ func (s *Server) UpdateLatestAvailableChapter(manga *database.Manga) (error, boo
chapterNumberStr := strings.Replace(c, "ch_", "", 1)
i, err := strconv.Atoi(chapterNumberStr)
if err != nil {
return err, false
}
if manga.LastChapterNum == i {
if manga.LastChapterNum == chapterNumberStr {
return nil, false
} else {
manga.LastChapterNum = i
manga.LastChapterNum = chapterNumberStr
return nil, true
}
}