![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
PocketBook get read information into calibre
Hi,
I know how PocketBook stores the read information. Now I'd like to get that information out and store it automatically in calibre's (custom) read column. Can someone please give me a hint where I can get all the information I require to enhance / create a plugin which can do this? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Take a look at the annotations plugin for an example of getting device based data into calibre
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
You can also look at my Kobo Utilities. It can do this for the Kobo devices.
But, the real question is how the status is stored on the device. Is it in an accessible database? |
![]() |
![]() |
![]() |
#4 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Quote:
Query is Code:
select title, strftime('%Y-%m-%d', datetime(opentime, 'unixepoch')) AS FINISHED from books_impl join books_settings on id=bookid where completed = 1 order by 2 desc |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
OK. Now the problem is to match the book in the database with that in the library. The KoboTouch driver does this during the connection, so fetching extra information in a plugin like this is easy. If there is a reference in the database to the book file, that should be usable. Otherwise, you have to ask to match the books when you retrieve the status. The Annotations plugin works that way for the Kindle devices.
If you want to look at the Kobo Utilities plugin, the starting method is store_current_bookmark in action.py. That does the fetch for the currently selected books. It generates the ids to search the device database. Then calls _store_current_bookmark which reads the database and updates the calibre library. There is also a batch mechanism so that the fetch runs in the background and can be triggered when the device is connected. To use this, you would need to: - Modify the device detection. - Change the database id generation in store_current_bookmark - Replace the database fetch in _store_current_bookmark There is some clumsy code in there, but most of what you need is in there. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Thanks for your replies. I think I'll look into it over easter.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2018
Device: Pocketbook Touch HD
|
Did you find a solution regarding calibre and the read information?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CC Beta FAQ: Syncing Read information with calibre | chaley | Calibre Companion | 0 | 02-27-2014 05:37 AM |
Can not start recoll from calibre /opt/calibre/lib/libz.so.1: no version information | Satas | Development | 5 | 04-19-2013 11:22 PM |
Please help with Calibre Series Information | coaver | Calibre | 4 | 01-14-2011 02:01 PM |
IQ Any information about Pocketbook IQ? | katzki | PocketBook | 99 | 01-14-2011 08:22 AM |
Way to add additional information with Calibre? | MidknytOwl | Sony Reader | 5 | 09-11-2009 01:53 PM |