View Single Post
Old 06-11-2010, 09:02 AM   #28
tafweb
Junior Member
tafweb began at the beginning.
 
tafweb's Avatar
 
Posts: 3
Karma: 10
Join Date: Dec 2009
Device: Sony PRS-505
Re: Double records for same file

Quote:
Originally Posted by chaley View Post
Are you saying that it always creates two lines when you send an updated book to the device?

If so, have you changed the send-to-device template? Or used some other software to load the books? What I am really wondering is whether the book is in fact on the device twice, but in two different places. If this is true, things will get confused. Calibre's author and title matching will match both to the same book, probably creating two lines that could end up pointing at the same file. The Sony software will find both and create two records, but its collections will likely get messed up.

If you delete one in calibre then disconnect, the other should come back on the next connection.

Bottom line: if you change naming conventions, it is best to clean all books off the device and reload. If you use more than one piece of software to manage the device, ensure that the same book is not added by both of them.
Here is an example:
  1. Send new book to device - result: one entry on the list in Calibre for Card B.
  2. Send the same book to device again - result: two entries on the list in Calibre for Card B - both showing the book to be in the same location on the device. Confirmed only one book present on the actual device.
  3. Disconnect device
  4. Reconnect device - result: the book is still listed twice in Calibre.
  5. Delete one of the entries in Calibre - result: error message as follows:
    Code:
    =====================================
    ERROR: Error: Error communicating with device
    (3, 'The system cannot find the path specified')
    
    Traceback (most recent call last):
      File "site-packages\calibre\gui2\device.py", line 62, in run
      File "site-packages\calibre\gui2\device.py", line 288, in _sync_booklists
      File "site-packages\calibre\devices\prs505\driver.py", line 151, in sync_booklists
      File "site-packages\calibre\devices\prs505\sony_cache.py", line 343, in update
      File "site-packages\calibre\devices\prs505\sony_cache.py", line 426, in update_text_record
      File "genericpath.py", line 64, in getctime
    WindowsError: [Error 3] The system cannot find the path specified: u'S:\\Bairnsfather, Bruce\\Bullets and Billets\\Bullets and Billets - Bairnsfather, Bruce_2010.lrf'
    ==========================================
    The book is no longer present on the device but there is still one entry in Calibre's list for Card B.
  6. Delete remaining entry from Calibre's list - result: everything now back to normal.
tafweb is offline   Reply With Quote