![]() |
#61 | |
Connoisseur
![]() Posts: 52
Karma: 10
Join Date: Sep 2011
Location: NYC
Device: PRS-T1 Black, T2 Black
|
Quote:
I am able to read the Micro SD books by adding it to a disk-drive basis and really would appreciate the help Kolenka and potentially Chaley. I for one is happy to donate money to get this done, fast, right and it would be even better than what it has now. Just the fact that it is now android, instead of linux, should pose serious challenges. But I gather the file management is entirely different. This, plus the abandonment of Memory stick, means that Sony is conceding and it will be a new standard for future product as well. Last edited by azxswq; 10-09-2011 at 10:44 AM. |
|
![]() |
![]() |
![]() |
#62 | ||
...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Quote:
Quote:
I also see that you are now using Sony_Reader/media/books as the main file system path on the device instead of calibre. Do you think this will pose any issues for those who use built in features on device? Only reason I ask is I did notice current beta T1 driver is not using this directory and thought maybe there could be a potential conflict if that directory will be shared with Sony desktop clients or the built in Reader Store/Public Library/Google Books features on the device. In any case, great work with this so far! Really look forward to trying this out. Last edited by log; 10-08-2011 at 10:17 AM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#63 | ||
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
The T1 will perform a scan anyhow, but it won't find anything to do, and your collections/etc will be available immediately while the scan happens in the background. Quote:
Actually, that brings up a bug in the initial patch: It doesn't actually put files into sub-folders based on the configuration like it should be. I just took a look and there is a typo: 'SUPPORT_SUB_DIR' instead of 'SUPPORTS_SUB_DIR'. D'oh. Also, looks like detection of books being in your library isn't great when plugging in a device, due to the Sony only storing the first author in the database. Not sure of a good way to tackle that. Last edited by Kolenka; 10-08-2011 at 11:19 AM. |
||
![]() |
![]() |
![]() |
#64 | ||
...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Quote:
This is great since no functionality of existing T1 driver is lost, and eventually when calibre library image for thumbnail support is added, will be a very nice feature that we can eliminate the step of tweaking the epub to change the cover image. Quote:
If you have a epub with multiple authors delimited by ampersand (&) in calibre, it gets loaded by firmware filesystem scanner as you mentioned, with only the first author listed on the main book view. Interesting thing is if you open book, and go Menu -> More -> Setting -> Info, it shows all the authors, this time delimited by comma (,). I did check my books table, and there is single row for the book, and only the first author listed. My guess is on info screen it actually reads epub metadata. This book correctly is detected as being in my library in current calibre beta also, so maybe there is some other variables besides the authors exact match that is causing your book to not be detected properly in calibre library as being on the device? |
||
![]() |
![]() |
![]() |
#65 | ||
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
Quote:
I know the problem, but as I said, I don't know how best to tackle it. It seems kinda wasteful to have to pop open each ePub to read information, but it might be unavoidable. Maybe it needs to be an option that people can turn off if it gets too slow for them. Also keep in mind that the cover image used for the sleep display is pulled from the first page of the book. Even if a different thumbnail is used. So Calibre won't be able to make your sleep screen look any better if the ePub needs tweaks to get a decent cover. |
||
![]() |
![]() |
Advert | |
|
![]() |
#66 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,176
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Kolenka: I haven't had a chance to review your code, but on general principles...
The USBMS classes maintain a cache of metadata read from the ebook files in the file metadata.calibre in the root of the device. You should allow USBMS to read metadata from the files as normal (this will automatically use the cache wherever possible). Then take the resulting books and match them against entries in the SONY db. This gives you excellent performance (after the initial scan) and it allows you to present correct and complete metadata to the user in the device view without having to rely on the vagaries of SONY's metadata reading implementation. See for example the books() and sync_booklists() methods in the old sony driver. Last edited by kovidgoyal; 10-08-2011 at 03:08 PM. |
![]() |
![]() |
![]() |
#67 |
...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 226
Karma: 514506
Join Date: Sep 2011
Device: Sony PRS-T1
|
Good to know about sleep display, didn't realize until you mentioned it that the cover image of book is not stored in cache directory, only the library browser thumbnails -- this is primary reason I think most would be interested in the feature.
Last edited by log; 10-08-2011 at 03:40 PM. |
![]() |
![]() |
![]() |
#68 | |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
Quote:
I was suspicious that this wouldn't work as expected due to sync_bookslists being called where it was. It was a bit hard to track the order of things and the end result. So I tested it by downloading and adding a book to a collection. Amazingly, that collection showed up in Calibre as I expected. Had to make a couple other small tweaks in the process, but it has killed the bug (along with another from rewriting sync_booklists from earlier), and perf is good enough. I've included an updated patch with the feedback. It's at the point now that it's pretty usable. Really just needs thumbnail support (not 'vital', IMO) and maybe some fine tuning (more user options, perhaps) to catch up to the existing 505 driver. |
|
![]() |
![]() |
![]() |
#69 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,176
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Cool, I look forward to reviewing it. Unfortunately I am currently running around trying to find a place to live
![]() Glancing over the code I notice that you have lrf missing from FORMATS, has SONY really dropped LRF rendering support in the T1? |
![]() |
![]() |
![]() |
#71 |
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
|
I saw that it was missing from the specs. Just to make sure I manually copied 2 files, an EPUB and LRF, to the T1 in the same directory. After unplugging, the EPUB showed up on the Reader but not the LRF so it does seem that they have dropped the support for LRF.
|
![]() |
![]() |
![]() |
#72 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,176
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
A pity. They should have made the effort to port a reader for LRF to android. It's not very nice to force people to unnecessarily convert books.
|
![]() |
![]() |
![]() |
#73 |
<Insert Wit Here>
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 1275899
Join Date: Jan 2008
Location: Puget Sound
Device: Kindle Oasis, Kobo Forma
|
I just made sure the list matched the official specs.
I'm not terribly surprised, though. With how long LRF has been deprecated, and the fact that they had to delay features out of the v1.0 firmware to make the ship dates... I'd have cut LRF instead of cutting automatic periodical delivery (which they delayed to a future update). Part of the decision is likely based on understanding that 350/650 users may not be willing to upgrade so quickly after their purchase. Gah, I just realized something. I had it reading the thumbnail path into the booklist before, and rewriting books() removed it. I should probably add that back in. |
![]() |
![]() |
![]() |
#74 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,581
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
Just want to say thanks, Kolenka for working on this!
|
![]() |
![]() |
![]() |
#75 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,747
Karma: 3761220
Join Date: Mar 2011
Location: Pennsylvania
Device: T1 Red, Kindle Fire, Kindle PW, PW2, Nook HD+, Kobo Mini, Aura HD
|
I want to give Kolenka my thanks as well! Hopefully, when my T1 comes in, I'll have this Calibre plugin to make handling my books as great as Calibre always has been.
+1 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |