Suwayomi / Suwayomi-Server

A rewrite of Tachiyomi for the Desktop
Mozilla Public License 2.0
4.02k stars 205 forks source link

Prevent greater last page read than page count #938

Closed schroda closed 5 months ago

schroda commented 5 months ago

In case multiple chapters are getting updated, the last page read might be higher than the available pages of a chapter

Syer10 commented 5 months ago

What about chapters where we haven't fetched the pages so the pagecount is -1?

schroda commented 5 months ago

What about chapters where we haven't fetched the pages so the pagecount is -1?

it would have broken coerceIn... lastPageRead will now be 0 in that case