Description
This issue respects the following points:
- This issue is not already reported on GitHub (I've searched it).
- I agree to follow Jellyfin's Code of Conduct.
- This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.
Describe the bug
When a CBZ file that has folders containing images (a common method of handling chapters) the page Order is incorrect with the current order being used sorting at the file-name level then folder level (EG: c01/p01.png -> c02/p01.png -> c03/p01.png -> v01/p02.png) instead of sorting by absolute truncated name sequences.
Chrome and Firefox both preform different sorting to each other, but neither are the correct method.
- Firefox sports in reverse chapter but correct page order.
- Chrome sports in correct chapter and correct page order.
- Both go through one page in each chapter before moving on to the next page, again in each chapter.
Reproduction Steps
- Download the following file: TestCBZ.zip
- Rename from
TestCBZ.zip
toTestCBZ.cbz
and upload to Jellyfin in a book library. - Attempt to view the book in the web-viewer
- Page through the book in Chrome or Firefox
- Note that you are moving through chapters then moving to then to the next page number.
Expected/Actual behaviour
Intended behavior is as follows:
- Sort the level you are at in alphabetical order
- Select the first item.
- If a folder, open the folder and repeat from step 1 at the new level
- If an image, display the image.
- If there is another file at the folder-level, repeat from step 3
- If there is not another file, exit the folder and resume the parent level of recursion.
- If there are no higher levels of recursion, you have finished the file.
Logs
This is a logic / sort issue, as such there are no log errors available.
Server version
10.10.6
Web version
10.10.6
Build version
10.10.6
Platform
Chrome OS, Windows 10
Browser
Chrome, Chrome & Firefox
Additional information
I'll also be adding an issue regarding chapter support in CBZ files momentarily. It may be worthwhile to add in chapter support for CBZ files at the same time as they can naively be defined as the first image in a folder.