View Single Post
Old 10-11-2011, 06:46 PM   #153
Robert22
Zealot
Robert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankindRobert22 has exceeded all limitations known to mankind
 
Robert22's Avatar
 
Posts: 108
Karma: 17102
Join Date: Sep 2010
Location: San Diego, CA
Device: PRS-505 600 300 350 T1 T2 Kindle PW1 PW2 KV Clara 2E Libra 2 Leaf 2
Quote:
Originally Posted by Kolenka View Post
Yeah, there's a Windows bug with the file_path column.

The driver sets:
Sony_Reader\media\books\Adams, Douglas\Mostly Harmless.epub

The T1 wants:
Sony_Reader/media/books/Adams, Douglas/Mostly Harmless.epub

So the T1 removes the books the driver added (since the path doesn't exist), and then adds its own when scanning the media. That's what is causing books to drop out of collections, and is very likely behind the duplication as well. Since the driver's path doesn't match the database.

I thought the book's "lpath" (local path) would be using *nix path separators, not the OS' path separator. At least that is what the code looked like it did. Looks like I was wrong.

I can piece together a fix for that tonight.

Sony, Sony, Sony... what the heck did you do? I also see a 7 hour discrepancy in the modified time of the files. Looks like when the T1 re-added the books, it set the modified_date to a unix timestamp in local time for the device. The driver sets it to the UTC unix timestamp.

Yet, the added_order column is in the same format, but UTC. Sony get's the facepalm award from me for inconsistent database design.
Good catch... I was just about to send you the same info about the paths...
Robert22 is offline   Reply With Quote