Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2017, 05:11 PM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
NEVER EVER USE AN OFFLINE STORAGE DIRECTORY FOR YOUR WORKING CALIBRE DIRECTORY.

All it does is cause things not to work.
JSWolf is offline   Reply With Quote
Old 06-02-2017, 12:52 PM   #17
webmaven
Member
webmaven began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Oct 2014
Device: Kindle 4
Quote:
Originally Posted by DoctorOhh View Post
This is your problem. Unless you pause syncing, anytime you edit metadata you risk misplacing books. These books aren't actually deleted. When the metadata got updated a new folder was written with the correct title / author and since your book was locked (for some reason) it was never moved to the new location.
It's worse than that, actually: Because Dropbox (and, I assume, many other file-syncing tools/services) are case insensitive in order to be Windows-friendly, even when the file isn't locked a case change anywhere in the path (so for example in the title or author metadata fields) will cause a write conflict with the remote version, which Dropbox will resolve by creating an additional copy of the book/author folder (marked with (Case Conflict) appended to the folder name).

The reason it is worse is that pausing the syncing doesn't prevent the problem!

The case conflict can be avoided if you do case-change renames (of either authors or titles) as follows:
  1. rename Mcname to McName_
  2. Wait for Dropbox to sync
  3. Rename McName_ to McName

This is essentially a high-latency two-phase commit, and a PITA.

This song-and-dance isn't necessary if you're changing anything other than (or in addition to) the case (eg. removing extra spaces, swapping title and author, removing or adding punctuation, correcting a misspelling, de-ASCII-fying, etc.).

Last edited by webmaven; 06-02-2017 at 12:58 PM.
webmaven is offline   Reply With Quote
Advert
Old 06-02-2017, 08:02 PM   #18
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by webmaven View Post
It's worse than that, actually: Because Dropbox (and, I assume, many other file-syncing tools/services) are case insensitive in order to be Windows-friendly, even when the file isn't locked a case change anywhere in the path (so for example in the title or author metadata fields) will cause a write conflict with the remote version, which Dropbox will resolve by creating an additional copy of the book/author folder (marked with (Case Conflict) appended to the folder name).
In 8 years I have never had a "Case Conflict" in Dropbox. You do get "Conflicted Copy" appended to the end of a filename when you fail to let Dropbox fully sync before using calibre. This happens when you update a file on one machine and then log into a second machine and start using calibre before Dropbox can fully sync. Is is part of the hazard of using Dropbox.

If I were to make 20 changes to calibre on machine 1 then went to machine 2 and started calibre before the metadata.db file were to sync, then the database would reflect the state of calibre before I made those 20 changes. The actual changes would actually exist in the file structure. Logging out then allowing Dropbox to fully sync will update all of the folders and files. Once Dropbox syncs you simply have to go into Dropbox and revert a copy that was timestamped when you last logged off of machine 1.

Quote:
Originally Posted by webmaven View Post
The reason it is worse is that pausing the syncing doesn't prevent the problem!
Pausing sync will prevent the OPs original problem with updating metadata from happening. Not allowing Dropbox to sync fully before shutting down machine 1 or before using calibre on machine 2 will cause the problems you describe. But this is easily avoided.

Quote:
Originally Posted by webmaven View Post
This song-and-dance isn't necessary if you're changing anything other than (or in addition to) the case (eg. removing extra spaces, swapping title and author, removing or adding punctuation, correcting a misspelling, de-ASCII-fying, etc.).
Allowing Dropbox to sync is always necessary and pausing sync during all metadata edits is also always required if you want to avoid the issues the OP was experiencing. As others have stated if you are not comfortable understanding exactly what is going on then storing your library out of the cloud folder and doing a once a day sync when you are not actively using calibre is probably best.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub to Mobi issue with metadata oldbwl Conversion 8 11-20-2011 06:38 AM
Updating EPUB/MOBI metadata Caleb666 Library Management 12 09-02-2011 12:13 PM
converting to MOBI from PDF deletes Pictures jomaweb Conversion 3 07-28-2011 11:12 PM
ePub to mobi metadata page help please AlexBell Conversion 2 05-07-2011 11:19 AM
Mobi to Epub repeats metadata oldbwl Calibre 2 12-31-2010 01:41 AM


All times are GMT -4. The time now is 05:36 PM.


MobileRead.com is a privately owned, operated and funded community.