When attempting to add folders to my library via right click > Add, if the folders in question contain .cbr files, the filepicker dialog window closes without adding them.
running mcomix via terminal shows no errors when this occurs.
folders containing .cbz files are added without incident.
Strangely, if I navigate into the folders with the .cbr files via the filepicker, I can manually select them and add them to the library that way.
Using Mcomix 1.3.dev0 on Manjaro Linux.
I am sorry for the late reply. I could reproduce the issue. Hopefully, I'll find the time to look into it. Patches are welcome, of course.
The
_BaseFileChooserDialog.collect_files_from_subdirusemimetypesto collect files, but the .cbr is not a registed in IANA and not included inmimetype, so this bug occurred.One way to fix this bug is adding this mimetype (together with other types if needed) to
mimetypesusingmimetypes.read_mime_typesormimetypes.add_type.Another way is, avoid using
mimetypesbut usingos.walkto dive into subdir.Note to self: https://www.iana.org/assignments/media-types/media-types.xhtml
This should be fixed in the next version, if it wasn't already fixed before (I just added new mime types for CBR files).