hakuneko icon indicating copy to clipboard operation
hakuneko copied to clipboard

[Bug] Reader occasionally sorts by download-order and not filename order

Open Nivyan opened this issue 1 year ago • 1 comments

Did you read the troubleshooting guide Yes

Describe the bug When downloading a new chapter, the pages are sometimes in the wrong order. It seems that the reader mistakenly orders them by the order each page is downloaded instead of by filenames. Restarting HakuNeko fixes the issue.

To Reproduce Steps to reproduce the behavior:

  1. Enable Concurrent Downloads in settings
  2. Batch-download a manga of choice/multiple chapters
  3. Notice some pages are in the wrong order in the reader (4. Most often, Page 0 is the wrong page. Longer chapters have more frequent pages in the wrong order)
  4. Restarting HakuNeko fixes the order.

In my case, I tested with Yamada to Kase-san from MangaDex and Mangakalot respectively. Yamada to Kase-san has an easily-recognizable first page each chapter, so it was easy to find pages being in the wrong order. But I've experienced the same issue with LilyManga, MangaSee and Batoto.

Expected behavior The chapter' pages to be in the filename order when viewing in the reader.

Context (please complete the following information):

  • OS: Tested on Windows 10 & Windows 11
  • HakuNeko Version 6.1.7@d81c39

Additional context The filenames themselves are always in the correct order.

Suggested fix: Sort pages by filename after a chapter download is complete.

Concerns: I imagine that refreshing/reloading the reader might disrupt reading a chapter while a chapter finishes downloading.

Nivyan avatar Jan 26 '24 21:01 Nivyan

wont fix (hakuneko is deprecated in favor of haruneko) , only connectors are sometime maintained. Probably not hapening in haruneko

Sheepux avatar Jan 28 '24 22:01 Sheepux