View Single Post
Old 06-15-2010, 09:53 AM   #8
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Here's the iPad scoop.

I need to keep a copy of the uploaded file in both iTunes (on the host) and iBooks (on the iDevice). As a result, I can't use the temporary file with the updated metadata, because iTunes won't find it during a future calibre session when the temporary file is long gone. (This applies when the user has chosen to use their own storage, rather than having iTunes make its own copy of the transferred book). As a result, I have to use the real database copy, whose metadata is unaltered, causing the mismatch.

The initial implementation of the driver insisted that the user allow iTunes to make a copy, but folks who already had a substantial iTunes library using their own storage complained.

The challenge is all of the permutations - manual or automatic syncing, local or referenced storage.

I can add code that would rewrite the OPF file to rewrite the current metadata before uploading the file, but this seems wrong as it would be altering the original calibre copy. However, I could easily rationalize it by noting that iTunes is adding a plist to that very same file.

Input welcome.

G

Last edited by GRiker; 06-15-2010 at 10:32 AM.
GRiker is offline   Reply With Quote