View Single Post
Old 09-03-2018, 08:15 PM   #1199
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kjdavies View Post
In this case calibre did clean up after itself, but not until I'd discovered it filled the system drive. I closed calibre and the space was recovered.

I've set CALIBRE_TEMP_DIR as a system variable, so that should work after restarting.

I'm counting pages in (in this case) CBZ files, but I do have CBR (that I usually convert to CBZ). Page count is equal to the number of images.

Overall I'm happy with how this plugin works, and would prefer that CBZ and CBR continue to be supported. I just noticed that it ate my system drive.

I've also noticed that queuing the files takes many times longer (not measured, but observed) than the page count. If it could read in place it would finish almost immediately. This obviously might not be true of other formats such as PDF and EPUB.
The plugin shouldn't be copying the files. What it needs to do is unpack the files so that the contents can be accessed. As BR said, the temp files will be cleaned up, but probably not until the complete count job has been done. If this is an issue, the simplest thing to do is to run the count in smaller batches. I will have a look at the CBR/CBZ count method as it should be doable without unpacking the files. At the moment, it is probably using a calibre routine to do this and that might not be as efficient for these types of files.

From my experience, the counting takes much longer than setting up the count job. But, that is probably related to the file types. I am usually running the plugin on epubs and I know it takes some time for each of these. I haven't counted enough CBR/CBZ to see what happens there. In any case, I will not be changing the plugin to handle these differently.
davidfor is offline   Reply With Quote