Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2011, 06:30 PM   #151
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
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.
Robert22 is offline   Reply With Quote
Old 10-11-2011, 06:40 PM   #152
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
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.
Kolenka is offline   Reply With Quote
Advert
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
Old 10-11-2011, 06:54 PM   #154
anesthezea
Groupie
anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.anesthezea ought to be getting tired of karma fortunes by now.
 
anesthezea's Avatar
 
Posts: 167
Karma: 2627964
Join Date: Aug 2010
Location: Alabama, USA
Device: Kobo Libra 2, Kobo Clara 2e, Kobo Libra Colour, Kindle Paperwhite
Quote:
Originally Posted by dwanthny View Post
I'm curious. did any or all of your testing start with a clean slate of zero books/collections on the ereader?
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.
anesthezea is offline   Reply With Quote
Old 10-11-2011, 06:56 PM   #155
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
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.
Kolenka is offline   Reply With Quote
Advert
Old 10-11-2011, 06:58 PM   #156
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by anesthezea View Post
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.
Do you know if it was still scanning the books when you hit this behavior? I've noticed the T1 (unlike older models) scans for books in the background, and makes the device verrrry slow while it is doing it.

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.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 07:01 PM   #157
Pegster
Devourer of Books
Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.Pegster ought to be getting tired of karma fortunes by now.
 
Pegster's Avatar
 
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.
Pegster is offline   Reply With Quote
Old 10-11-2011, 07:20 PM   #158
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Kolenka View Post
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.
I've only just loaded the beta v0.8.21. Does this explain why plugboards are not working for me? My Time Zone is "London, Dublin" and I'm using Windows XP SP3.

On the plus side so far, Send-to-Device Save template is working and so are collections.

Need to test more tomorrow.
jackie_w is offline   Reply With Quote
Old 10-11-2011, 07:30 PM   #159
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
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.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 07:32 PM   #160
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 Kolenka View Post
Quote:
Originally Posted by dwanthny View Post
With all of the older Sony models the Automatic setting was great. If the T-1 ever gets integrated to that level I'll consider buying one.
Minus the bugs folks are having with duplication, it's already at that point.
I don't pretend to know how any of this works and Thanks a bunch for contributing your time and knowledge to this driver.

Quote:
Originally Posted by Kolenka View Post
The difference between manual/automatic management is outside of the driver, and doesn't require any specific support for it. Calibre tells the driver what the data on the device should be, and the driver makes it so.

EDIT: Forgot to mention I actually use Automatic myself.
If this was true then wouldn't Automatic management work on all devices the same way it works on the older Sony models? Currently I have not heard anyone other than Sony owners acknowledge that their metadata automatically updates just by connecting their device. I assumed this was because the Sony driver wrote directly to the media.xml file and most other devices or drivers don't have an equivalent item to update.

Anyways Bravo Zulu for stepping up and helping out with this driver.

Last edited by DoctorOhh; 10-11-2011 at 07:36 PM.
DoctorOhh is offline   Reply With Quote
Old 10-11-2011, 07:44 PM   #161
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by dwanthny View Post
If this was true then wouldn't Automatic management work on all devices the same way it works on the older Sony models? Currently I have not heard anyone other than Sony owners acknowledge that their metadata automatically updates just by connecting their device. I assumed this was because the Sony driver wrote directly to the media.xml file and most other devices or drivers don't have an equivalent item to update.
That is a good point.

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.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 07:45 PM   #162
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
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.
Will this affect the change from DST to Standard time?
Robert22 is offline   Reply With Quote
Old 10-11-2011, 07:53 PM   #163
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by Robert22 View Post
Will this affect the change from DST to Standard time?
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.
Kolenka is offline   Reply With Quote
Old 10-11-2011, 08:02 PM   #164
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
jackie_w is offline   Reply With Quote
Old 10-11-2011, 08:03 PM   #165
Kolenka
<Insert Wit Here>
Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.Kolenka ought to be getting tired of karma fortunes by now.
 
Kolenka's Avatar
 
Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
Quote:
Originally Posted by jackie_w View Post
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.
I expect that they still won't work. You will unplug, smile at the result, and then watch as the T1 undoes all the work.
Kolenka is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:33 AM.


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