Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traversal of folders in archives #326

Open
nertml opened this issue Jan 17, 2024 · 2 comments
Open

Traversal of folders in archives #326

nertml opened this issue Jan 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@nertml
Copy link

nertml commented Jan 17, 2024

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

@nertml nertml added the enhancement New feature or request label Jan 17, 2024
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants