05-31-2014, 05:21 PM | #1 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Driver problem for PRS-T2 & PRS-T3, but not PRS-T1
I normally upload books to my PRS-T1 via USB and calibre 1.38 without any problems and store them as:
Code:
<author_name>/<series> - <title> I tried the same on an PRS-T2 with similar results. Inspecting the books.db file on T3 revealed that for some reason with all newly uploaded books the correct MIME type string "application/epub+zip" was missing in the database. So the T3 has no idea about the book type. This has no influence for reading the books, however, it just crashes the notes application when you use it. After a crash you can still open the book and by removing the highlight marking everything is then ok again. I tried to install manually the books in the same manner as calibre would do (actually making a verbatim copy of the book file as previously stored by calibre on the T3), safely stopped the USB connection, disconnected USB, waited until the T3 had processed the newly added books, and tried thereafter to make notes in them. This was successful on every attempt. Repeating the same kind of upload via calibre however always causes afterwards the T3 notes application to fail when it is used. In the books.db of the T1 the mime-type setting is also missing for the latest added books, however creating notes there is still working. This can perhaps be explained due to the fact that the firmware on the T2 & T3 is newer, perhaps stricter. I did see some earlier postings here about something similar for the T2. So it seems something (the calibre Sony driver?) is causing the detection of newly added files to fail for the mime-type, while it is successful when everything is uploaded manually. Does anybody has similar experiences? |
06-01-2014, 08:07 AM | #2 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Further investigation learned that all uploaded files after April 18 are affected. That means in effect the release date of calibre 1.34
I however could not find any bug fixes concerning driver updates around that time, just 1 fix for a failing cp -f issue. But that does not mean that is none as there could be a side effect from another bug fix. |
Advert | |
|
06-04-2014, 04:33 PM | #3 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
The problem still bugs me. I did found this thread discussing the exact problem I did have.
To summarize:
Go figure |
06-05-2014, 12:38 AM | #4 |
creator of calibre
Posts: 44,563
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since the person that maintains this driver (Kolenka) is no longer active and I dont have this device, it is a little hard to debug. Looking at the code, as best as I can tell, the calibre driver creates the mimetype in the books table in books.db. It is set to whatever mimetype is guessed from the file extension for the file on the device.
See https://github.com/kovidgoyal/calibr...driver.py#L478 What is present in the mime_type column in the books table for books uplaoded by calibre? |
06-05-2014, 03:58 AM | #5 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Welcom back Kovid, trust you had a good holiday?
It is indeed somewhere in the code: see the metadata.calibre contents: Code:
],
"timestamp": "2011-04-28T14:41:04+00:00",
"last_modified": "2014-04-24T13:25:59+00:00",
"mime": null,
"authors": [
"Kovid Goyal"
],
But when you add new books you get the situation as depicted below. And this is the case for long before the April 18th I mentioned earlier, at least in 2013 as I discovered after inspecting the old metadata.calibre file on my Nexus. It does not break making annotations on the T1 (which is still my main reader), but it does on the T2/T3 which may have pickier new software Last edited by DrChiper; 06-05-2014 at 04:15 AM. |
Advert | |
|
06-05-2014, 04:22 AM | #6 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Concerning the code, I can read Python, but I have no time or the means to setup a development environment and to understand the inner works of calibre.
I will however gladly help you with testing any fixes to resolve this annoying problem. |
06-05-2014, 04:32 AM | #7 |
creator of calibre
Posts: 44,563
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
mime has always been null in metadata.calibre that has nothing to do with this problem. In any case, the fix is pretty simple, assuming the mimetype is indeed the cause of the problem: https://github.com/kovidgoyal/calibr...cb0f797f901ddf
|
06-05-2014, 04:41 AM | #8 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
That was a quick fix!
Ok, so what is reported in metadata.calibre is different from what is actual written in books.db by calibre. Then I test tomorrow whether it is sufficient for T1/T2/T3 to make the annotations work again. Thanks! |
06-05-2014, 05:01 AM | #9 |
creator of calibre
Posts: 44,563
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There most probably will not be a release tomorrow.
|
06-05-2014, 05:07 AM | #10 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
I knew it was too good to be true ...
|
06-13-2014, 04:07 AM | #11 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Problem solved. Annotation works now for every added book on T1/T2/T3.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRSAnnots: Managed annotated PDF files for your PRS-T1 or PRS-T2 (& maybe others...) | Schrollini | Sony Reader Dev Corner | 37 | 11-17-2012 10:54 AM |
PRS-350 PRS 350 & PRS+: Changing LRF-fonts permanently | Analogus | Sony Reader Dev Corner | 21 | 11-08-2011 12:55 PM |
My thoughts, PRS-300, PRS-600, PRS-505, PRS-700, Kindle 2 | zacheryjensen | Sony Reader | 78 | 12-05-2010 08:33 PM |
Refurbished PRS-600 & PRS-300 at Sony USA | DonaldL. | Deals and Resources (No Self-Promotion or Affiliate Links) | 3 | 10-13-2010 08:57 PM |
360, 301, 302 vs. Sony PRS-300 & PRS-505: contrast levels? | dh003i | PocketBook | 10 | 01-05-2010 01:06 PM |