Quote:
Originally Posted by BetterRed
See attachment for the relevant CP configuration
If I have a comic-book with just a CBZ file, the CP PI will count the images and update my #images column. Perfect.
However if I also have a RAR containing several video clips for the book, the CP plugin does something but it doesn't update my #images column with the number of images in the CBZ. Bummer.
If I rename the .RAR in the book folder to a .BAR the CP plugin counts the images in the CBZ and updates my #images column. I can live with that, but others mayn't want to.
For textual books: if the preferred format is present the PI uses it to count/calc stats. Maybe there should be a Preferred format for Text books, and another one for Graphical books.
BR
|
Your problem is caused by you using .RAR files - quite simply, don't

. The plugin can make no assumptions about what a .RAR file contains - in fact it doesn't even attempt to look in them itself. It understands PDF, CBR and CBZ having special case logic to handle them. For any other books, it just asks calibre to convert them to EPUB so it can apply a standard algorithm.
As to what calibre does when it tries to convert a RAR file to an EPUB for the EpubIterator class - no idea. As to why it then works when you rename it to BAR - also no idea. You would have to ask Kovid.