![]() |
#151 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Hi Kolenka,
Because the "_id" field in the "books" table is different between the two versions of the database, and also the sequence of the books is different, it looks as though the T1 has removed the books out of the "books" table and then added them back in. Which would explain why there are no matches between the Collections and Books. But why the T1 is doing this I have no idea. You can also see that the "collection" table is the same in both DB versions but that the "collections" table in the second version is empty. |
![]() |
![]() |
![]() |
#152 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#153 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#154 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 167
Karma: 2627964
Join Date: Aug 2010
Location: Alabama, USA
Device: Kobo Libra 2, Kobo Clara 2e, Kobo Libra Colour, Kindle Paperwhite
|
Mine started clean slate. After that second batch of books, I ejected the T1 and went to bed to read for awhile, but ran into some buggy behavior - page turns were terribly, terribly slow and the unit froze twice and had to be reset. I don't know if this is due to the problems with the driver/Calibre or if it's the T1 itself. In either case, the reader hasn't behaved in this way before now. I plan to take everything off of it today and reload books via Reader Library to see if things smooth out.
|
![]() |
![]() |
![]() |
#155 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Yeah, your post just caught me while I was also investigating the time stamp discrepancy.
I even took a look at my own, and it looks like the T1 will always update the modified_date column on an unplug. But it only updates the rest of the metadata if the file's date is newer than what was in the database. This means the device_db plugboards work for those in west of UTC, but not east. I'm not entirely sure of a good way to discover the offset, especially if there are no books in the database. If there are, I can detect the offset, but if there aren't, it's a bit of a crap shoot. |
![]() |
![]() |
Advert | |
|
![]() |
#156 | |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
With the bug I'm seeing, the Sony is doing a full rescan of your books, which if you have a lot could easily cause this behavior. Once the Windows bug is fixed, the loading phase after an unplug should be a lot faster and on par with the Reader Library application. |
|
![]() |
![]() |
![]() |
#157 |
Devourer of Books
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 135
Karma: 508928
Join Date: Nov 2009
Location: Southeastern US
Device: Sony PRS-505, Sony PRS-350, Sony PRS-T1, Samsung S5
|
I've nothing really helpful to add to this discussion, but I wanted to thank all of you for taking the time to add to Calibre and for testing it. As a Calibre user, I'm extremely appreciative.
|
![]() |
![]() |
![]() |
#158 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
On the plus side so far, Send-to-Device Save template is working and so are collections. Need to test more tomorrow. |
|
![]() |
![]() |
![]() |
#159 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
It would be (GMT+1, so east of UTC). It's a really stupid bug on the part of Sony too.
If I change my device's timezone to be east of where it was before (say GMT-7 to GMT-6), it will trigger a rescan of the entire library (and undo the work of my device_db plugboards). It makes me a little dead inside that something like this made it through, and there are easy ways on *nix systems to go from localtime to a valid Unix Epoch timestamp. They had to go out of their way to create a bug like this. It's weird that you aren't seeing the path bug others are seeing, though. |
![]() |
![]() |
![]() |
#160 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Anyways Bravo Zulu for stepping up and helping out with this driver. ![]() Last edited by DoctorOhh; 10-11-2011 at 07:36 PM. |
||
![]() |
![]() |
![]() |
#161 | |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
Calibre has an idea of what the metadata should be. It passes on this metadata to the driver and tells it to update the device with that metadata. A driver can ignore it if it chooses. This makes sense when there is nowhere to put that metadata coming from Calibre. As long as the driver refreshes whatever the device has for metadata (media.xml, books.db) during 'sync_booklists', then automatic/manual doesn't really matter. And really, I find that the driver is simpler if you do your metadata work in 'sync_booklists'. The only things missing in the T1 driver versus the 505 driver are: - "Use Author Sort" option so you don't need a plugboard for it. (And that is something I've got working again) - Being able to toggle "Scan all folders". It scans all folders on internal memory and the SD card by default. This helps catch downloads on the device. If you could turn it off, there would be some interesting bugs that just don't have a reliable fix. I have to leave it turned on for my 950 with the 505 driver, so I don't see this as a loss of functionality. As far as I can tell, it is already at feature parity with the 505 driver with those two exceptions. Last edited by Kolenka; 10-11-2011 at 07:48 PM. |
|
![]() |
![]() |
![]() |
#162 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#163 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Don't know for sure, but I think it will. For you and me, the timestamps are -7 hours from UTC (PDT). So that likely means it will drop back to -8 hours from UTC when PST starts.
That means when PDT starts again, your device will rescan the whole library, because it has set all your books' modified_date fields to the PST value. |
![]() |
![]() |
![]() |
#164 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Please forgive me for poor testing of plugboard. I was using device_db:PRS505 I have now spotted the device_db:PRST1 option. I will retest.
|
![]() |
![]() |
![]() |
#165 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prs 505 Sony and calibre 0.8 | duduche33 | Devices | 3 | 05-12-2011 10:50 AM |
Calibre for Sony prs 350 | Rick1971 | Calibre | 4 | 12-26-2010 12:27 PM |
Calibre and Sony PRS-600 | Archergal5219 | Calibre | 2 | 07-25-2010 12:32 AM |
Sony PRS-505/Sony Connect/Calibre | thesweetone | Sony Reader | 26 | 09-30-2009 03:00 PM |
Calibre and Sony PRS-600 | lukasfikr | Calibre | 10 | 08-26-2009 09:11 PM |