Kavita/API.Tests
Robbie Davis a601942ec5
Cover generation issue on first scan flow (#517)
* Cover generation issue on first scan flow

- Fixed logic around whether a chapter cover image should be generated. New logic adds grouping priority, changes an AND to an OR and adds an additional check to see if the cover image has been lock (custom image uploaded)

* Sonar update

* Refactored out the cover image updating logic to a new call (ShouldUpdateCoverImage) and updated ONLY chapters. Added a blank slate unit test to build out conditions.

* Fixed up unit case

* Fixed some logic on when to update a cover image

* Fixed an issue where 1) we were refreshing metadata anytime we adjusted cover image on a series and 2) Cover generation wasn't properly being handled on first run.

* Cleaned up the code for when a cover image change needs to trigger a refresh metadata task

Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
2021-08-22 11:32:38 -07:00
..
Comparers Manga Redesign (#321) 2021-06-24 19:31:42 -05:00
Converters Lots of cleanup 2021-02-07 12:02:47 -06:00
Entities Feature/tech debt (#199) 2021-05-05 21:00:50 -05:00
Extensions Cover generation issue on first scan flow (#517) 2021-08-22 11:32:38 -07:00
Helpers Collection Support (#234) 2021-05-30 17:24:23 -05:00
Parser Parsing out cover images (#513) 2021-08-21 14:44:35 -04:00
Services Cover generation issue on first scan flow (#517) 2021-08-22 11:32:38 -07:00
API.Tests.csproj Bookmarking Pages within the Reader (#469) 2021-08-10 18:18:07 -05:00
generate_test_data.py EPUB Support (#178) 2021-04-28 16:16:22 -05:00