mienaiyami / yomikiru

An offline desktop reader for manga, comics, and novels. Offers a customizable reading experience with extensive settings, shortcuts, themes and layouts. Manga reader / Manhwa reader / Webtoon Reader / EPUB Reader. **Not a downloader**
MIT License
223 stars 10 forks source link

Traversal of folders in archives #326

Open nertml opened 4 months ago

nertml commented 4 months ago

Type of reader (if reader related)

image

Description of the new feature / enhancement

Would it be possible to support traversing images in subfolders within archives?

At the moment it errors opening the file saying "Folder doesn't contain any supported image format." since there are none in the root, if possible I'd love the feature to act as if the archive was flat and just display ch01\p01, ch01\p02, etc then onto ch02\p01, ch02\p02 etc in order

There's an argument for instead treating the archive as a folder and displaying the tree to browse through for the individual folders (chapters) as happens without archives but if it's easier I think it's acceptable in this arrangment to just present it as one file (volume)

Obviously speed of extracting a full volume at a time is going to be slower than a chapter but I don't think that should be an issue for people who have it organised this way, plus only one long delay per volume!

Scenario when this would be used?

E.g. ├─ DEFAULT LOCATION\ │ ├─ Series Name\ │ │ ├─ Volume 01.cbz │ │ │ ├─ Chapter 001\ │ │ │ │ ├─ 001.png │ │ │ │ ├─ 002.png │ │ │ ├─ Chapter 002\ │ │ │ │ ├─ 001.png │ │ │ │ ├─ 002.png

Supporting information

Quite a lot of archives are structured like this, with multiple chapters within a single file, or say a \bonus\ subfolder amongst the rest

github-actions[bot] commented 4 months ago

Thank you for your feedback and suggestions. Please note that the author might only respond on weekends, so we kindly ask for your patience and understanding.

mienaiyami commented 4 months ago

I was trying to do this when implementing support for archives, but couldn't find any library which provide functions to just browse. And when I planned to make it myself then I couldn't find a better api for it.

While I do plan to implement this soon, it wont be anytime soon, because of the time it would take. I might add a simple "read all images from archive" but will probably result in high RAM usage.

For now, if the volume archive has many chapters, you can simply extract it manually using windows explorer (might need to rename .cbz to .zip or cbr to rar) and read chapters that way.