Skip to content

Commit

Permalink
fix: remove error log for conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Sep 21, 2023
1 parent c051337 commit d2e0465
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to
[Semantic Versioning](https://semver.org).

## 4.6.1
- Fix error message when image can't be converted to webp

## 4.6.0
- Add fallback on manga updates when anilist isn't available

Expand Down
2 changes: 1 addition & 1 deletion constant/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package constant

const (
Mangal = "mangal"
Version = "4.6.0"
Version = "4.6.1"
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
)
3 changes: 3 additions & 0 deletions converter/webp/webp_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"github.com/belphemur/mangal/constant"
"github.com/belphemur/mangal/log"
"github.com/belphemur/mangal/packer"
"github.com/belphemur/mangal/source"
"github.com/oliamb/cutter"
Expand Down Expand Up @@ -87,6 +88,7 @@ func (converter *Converter) ConvertChapter(chapter *source.Chapter, quality uint

splitNeeded, img, format, err := converter.checkPageNeedsSplit(page)
if err != nil {
log.Error(fmt.Sprintf("error checking if page %d of manga %s needs split: %v", page.Index, page.Chapter.Manga.Name, err))
return
}

Expand All @@ -97,6 +99,7 @@ func (converter *Converter) ConvertChapter(chapter *source.Chapter, quality uint
}
images, err := converter.cropImage(img)
if err != nil {
log.Error(fmt.Sprintf("error converting page %d of manga %s to webp: %v", page.Index, page.Chapter.Manga.Name, err))
return
}

Expand Down

0 comments on commit d2e0465

Please sign in to comment.