View Single Post
Old 01-11-2013, 09:43 AM   #12
chaley
Wizard
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
Quote:
Originally Posted by kovidgoyal View Post
@chaley: Why not maintain a uuid->filename map on the device? That way if a file already exists, the filename to be used could be looked up from the map.
This doesn't solve half the problem, having different names on different devices for the same book. As far as I can tell, in general syncing reading positions requires the file names to be identical on each device; this is certainly true for moon+. Each device can get the file from a different path, so name generation for new books on all paths must result in the same value.

FWIW: we actually built what you are suggesting, then took it out because it invisibly changed fundamental calibre/device/template behavior. It would be easy to put it back, this time as an option, but as I said it doesn't solve the multiple-device problem.
__________________
Support calibre developers at no cost to you by using calibre's get books feature.
Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre
charles.haleys.org/calibre
chaley is offline   Reply With Quote