covers not sent to kobo SD card if images subdirectory missing

Bug #1174126 reported by Geoffrey Reynolds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
David Forrester

Bug Description

Calibre version 0.9.28, running on Debian Linux
Kobo Glo firmware version 2.5.1

I have the "Upload covers for books" option set in the KoboTouch driver, and everything works correctly when sending books to a card that already has books on it, but covers fail to upload when sending the first batch of books to a freshly installed card. I think this is what is happening:

When a new (blank) SD card is inserted into the device the directory koboExtStorage is created, but the subdirectory koboExtStorage/images is not created until the device first generates a cover for the book.

If the koboExtStorage/images subdirectory does not exist, Calibre does not seem to upload covers for books it sends to the SD card even though the "upload covers for books" option is set. If this happens then the device will generate its own (poor quality) covers for those books, along with the images subdirectory. Then covers for books sent thereafter will be uploaded correctly, but the first batch of books will retain their device-generated covers.

If this is the cause then perhaps all that needs to be changed is for Calibre to check that the koboExtStorage/images subdirectory exists, and if not then create it before uploading covers.

Tags: kobo-driver
tags: added: kobo-driver
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1174126

Changing the component for this bug.

 assignee davidfor
 tag kobo-driver
 status triaged

Changed in calibre:
assignee: nobody → David Forrester (davidfor)
status: New → Triaged
Revision history for this message
David Forrester (davidfor) wrote :

Yes, this the missing directory is causing the problem. The directory "koboExtStorage" is created in the SD card when it is inserted into the Kobo reader. But, the "images" directory is only created when it is needed.

I'll add a check and create it if necessary.

Revision history for this message
David Forrester (davidfor) wrote :

Changes made and include in fix for Bug #1174147 as these two are in a related area.

Tested on Windows and OSX.

Kovid Goyal (kovid)
Changed in calibre:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.