06-09-2010, 01:48 AM | #46 | |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Quote:
Well Done! The new driver works very nicely. I was able to add and delete epubs without problems at last. The only small things I noticed were:- 1. I changed the driver and plugged in the Kobo 2. Waited for the on-Kobo files to appear 3. NO EPUB files appeared on Kobo "page" 4. Ejected Kobo 5. Re-Connected Kobo - hey presto - all files including EPUBS visible I also noticed that the plugin is now called "001-Kobo Reader Device Interface" etc, so it doesn't list next to the original driver any more, but is at the top of the listing. Not a problem in itself, but just thought I would bring it to your attention. Thanks for your hard work on this, Tim. I am sure the community will greatly appreciate it! Cheers John in Sunny Carnarvon - Western Australia |
|
06-09-2010, 03:47 AM | #47 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The path separator issue has bitten me more than once. The 'rules' are: - lpath must always be the path from the mount point, and must always be forward slashed. It must not have a leading slash. - path must be the complete path, and must always use os.sep. - prefix must be the path to the root of the storage, and must use os.sep. It must have a trailing os.sep. If you carefully follow these rules, then all the various bits of software will know what to do when constructing and manipulating paths. You might not have noticed a new classfunction added to USBMS.driver, normalize_paths. It takes a constructed path (for example, os.path.join(prefix, lpath)) and returns that path corrected for the local OS and validated to be unicode. The base driver uses that function liberally. |
|
Advert | |
|
06-09-2010, 04:31 AM | #48 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Hi Tim,
While you are on a roll, is there any possibility of setting an uploaded new ebook to show in the 'I'm Reading' list of the Kobo. I understand that if the “FirstTimeReading” database field is set to True, you can control this. See half way down this page…. http://wiki.durbn.net/koboko/index.php/DBSchemaV2 This is a nice feature of the Borders/Kobo software, I find. [LATER] Actually, I thought that TAGS would do the trick, but I was mistaken - perhaps a quick "Read" of the Book before sending will work???? - I'll try a few different approaches... Cheers John Last edited by JBlyth; 06-09-2010 at 08:25 PM. Reason: New information.... |
06-09-2010, 10:56 PM | #49 | ||
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Quote:
Tim |
||
06-09-2010, 11:03 PM | #50 | ||
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Quote:
Thanks Tim |
||
Advert | |
|
06-09-2010, 11:07 PM | #51 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
However, it may be possible modify the GUI to allow you to add a book on the device to the reading list. I have not looked at it yet but it might be interesting... Tim |
|
06-10-2010, 05:00 AM | #52 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
1) You will need to change your driver to take the new architecture into account. The caching stuff is completely different, for example. 2) While you are there ... You will have the custom fields available to you. 'Reading list' seems to be a collection of sorts, leading me to suggest that you use the collections box in device customization to pass the name of a (bool) custom column to be used to populate the reading list. This approach has the advantage of not requiring any modification to Calibre's GUI. |
|
06-10-2010, 08:50 PM | #53 |
Connoisseur
Posts: 97
Karma: 126
Join Date: May 2010
Location: Carnarvon - Western Australia
Device: Kobo, Kobo Touch, Ipaq 214, HTC WildFire Android
|
Sending to Koko "I'm Reading"
I'm not to sure why, but now that I am re-formatting my ebooks with Calibre by converting to EPUB (to ensure there is a CSS file), removing the Style.css file, then re-converting with full justification, all my Kobo uploads are being sent to the "I'm Reading" section of Kobo. This doesn't seem to happen with a "non-fiddled with" file.
This sort of implies that something that Calibre does when creating a fairly blank CSS file sets some sort of flag, but I don't know enough about Calibre to confirm this - heck I've only been using it for about a week ;-) Cheers John in Sunny Carnarvon - Western Australia |
06-10-2010, 10:34 PM | #54 | |
Asha'man
Posts: 335
Karma: 844
Join Date: May 2010
Location: Canada
Device: Kobo
|
Yeah, any newly transferred epubs you load on the Kobo should appear as 'NEW' on the I'm Reading list.
HOWEVER, if you do not open them by the next time you plug in your Kobo, when it processes after unplugging, 'NEW' books get filed away in your library (taken off the list). @TIM: Quote:
Although I don't really know how you would accomplish either using the Calibre GUI. Is Calibre extensible to the point of allowing you to add/modify the context menu so we could do this via right clicks of books on the device list? |
|
06-19-2010, 08:47 AM | #55 |
Connoisseur
Posts: 99
Karma: 5434
Join Date: Sep 2004
Device: Kobo eReader
|
I followed the instructions to try this new kobo driver, but after I restarted Calibre(0.73) then plugged in my kobo, it gave me this error before showing me my kobo content:
ERROR: ERROR: Unhandled exception: <b>TypeError</b>:expected string or buffer Traceback (most recent call last): File "site-packages\calibre\gui2\library\models.py", line 998, in sort File "site-packages\calibre\gui2\library\models.py", line 955, in _strcmp File "<string>", line 418, in fget File "re.py", line 151, in sub TypeError: expected string or buffer |
06-19-2010, 10:14 AM | #56 | |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Quote:
Tim |
|
06-21-2010, 10:02 PM | #57 |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
Hi
Here is a new version of the plugin (attached to first message in the Thread). Not drastically different but the code is more Calibre like. One added feature is to use the color images where they exist. There is a known issue with PDFs. I am hoping for some clarification from someone at Kobo as certain PDFs are only referenced in the content table while others are two tables. So if a PDF of yours is missing that is the reason. It might be an idea to delete the metadate.calibre file from the device before using it but restarting Calibre a second time should clear up any issues due to the metadata changes. Barring any big issues I hope to get this version pushed to the main Calibre code base in the near future. Let me know if you have any issues. The testing on Linux was fairly detailed. I have done a subset of that on Windows and none on Mac. Tim |
06-21-2010, 10:53 PM | #58 |
Connoisseur
Posts: 99
Karma: 5434
Join Date: Sep 2004
Device: Kobo eReader
|
|
06-22-2010, 07:37 AM | #59 |
Addict
Posts: 305
Karma: 78651
Join Date: May 2010
Location: New Brunswick, Canada
Device: Kobo, Kobo Wifi, Kobo Touch
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Calibre Kobo Driver allows deleting of Kobo Free books | timlegge | Kobo Reader | 46 | 08-27-2011 10:16 PM |
Updated Kobo driver in Calibre 0.7.5 | timlegge | Kobo Reader | 22 | 06-29-2010 08:14 AM |
Calibre now has Kobo driver ! | taming | Kobo Reader | 18 | 05-27-2010 07:36 PM |
Beta Beta Test of Major New Features | Starson17 | Calibre | 45 | 05-17-2010 10:55 AM |
New Kobo driver bug | Stinger | Calibre | 6 | 05-17-2010 09:47 AM |