![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
[Device Plugin] PocketBook Improved Driver
Calibre Device Driver For PocketBook Devices
This is an improved device driver for PocketBook devices. I have developed it for my PocketBook Touch HD 3 but it will probably work with other PocketBook devices as well. Please let me know if this driver works with your device and I will greatly appreciate to add it to the list of supported devices. Improvements Read Status The PocketBook supports to mark a book as read. To synchronize this status with Calibre, create a user defined column of type Yes/No and set its lookup name in the driver settings. This is a two-way sync, no matter where you mark a book as read (on the device or in Calibre), the read status is synchronized on both platforms. Database Cleanup The corresponding database entries on the device are not deleted when you delete a book on the device, leaving lots of abandoned database entries over time. Of course, theses entries doesn't hurt, but to keep the database in a clean and consistent state, a database cleanup is performed on every device connect. Book Deletion When deleting a book on the device not all of the corresponding database entries are deleted. Uploading the same book again leads to the effect that the book is not displayed in the library, making it impossible to open it again. This is fixed in this device driver, deleting a book on the device from Calibre cleans up the database. Metadata of PDF Files The PocketBook does not handle the metadata of PDF files correctly, mainly the title and author fields are messed up. This device driver cleans the metadata fields on device connect. Installation Download the `pocketbook632.zip` file. Open Calibre, go to Preferences, Advanced, Plugins and choose Load Plugin from file. Choose the `pocketbook632.zip` file. Restart Calibre. Configure the plugin Set the lookup name of your custom Yes/No column in the plugin's configuration dialog (default is '#read') This plugin is currently under active development. Please report any issues with the Github Bug Tracker. GitHub Version History Spoiler:
Upcoming features
Last edited by zisoft; 06-14-2024 at 01:39 PM. |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
Test versions
(Placeholder) Last edited by zisoft; 08-28-2022 at 12:30 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
Version 1.0.2
Fixed a bug with path delimiter characters on Windows devices. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
|
![]()
Hi,
and thank you for this useful plugin! ![]() When connect my pb700 (the new Pocketbook Era) with your driver activated, calibre is blocked for "hours". It says "analyse books" and is very slow doing this. Is there anything I can do to bring the speed a bit up? |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
I don't have access to a pb700 device.
Any chance for you to start Calibre in debug mode and post the log here? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,662
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would you please put in the version history if this is Calibre 6 compatible or not?
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
|
here you are
|
![]() |
![]() |
![]() |
#8 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Zealot
![]() Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
|
Hello,
its working like Prince Charming with my Inkpad X! Thank you very much!!! ![]() |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
|
|
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
|
Just a short add-on:
It doesn't matter if I activate or deactivate the user defined column, the behaviour stays the same. Maybe it's because of the pocketbook firmware? I'm on 6.7.775. |
![]() |
![]() |
![]() |
#12 |
Zealot
![]() Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
|
I just have the same problem: I know it worked when i installed the driver, but due to other problem with calibre i uninstalled all plugins and reinstalled them again with configuring all by hand.
So now after about 2 weeks i wanted to sync my Inkpad X and didnt have any success. Starting calibre in debug-mode i found out that your driver isnt used anymore! I dont have any reference to pocketbook632 in the debug: Code:
{'bsd_drives': {'main': '/dev/disk2'}, 'drives': {'main': '/Volumes/LILLIFEE'}, 'mount_map': {'//papi@rumo/Bücherei': '/Volumes/Bücherei', '//papi@rumo/Schrank': '/Volumes/Schrank', '//papi@rumo/Truhe': '/Volumes/Truhe', '//papi@rumo/itunes-dasi': '/Volumes/itunes-dasi', '/dev/disk1s1': '/System/Volumes/Data', '/dev/disk1s2': '/System/Volumes/Preboot', '/dev/disk1s4': '/System/Volumes/VM', '/dev/disk1s5s1': '/', '/dev/disk1s6': '/System/Volumes/Update', '/dev/disk2': '/Volumes/LILLIFEE', 'devfs': '/dev', 'map auto_home': '/System/Volumes/Data/home'}} SaveVirtualLibrariesToColumnGUI device connected True Shortcut for 'Interface Action: Annotations (Annotations) - Find annotations' already registered by Find annotations Job: 0 Geräteinformationen abrufen started DeviceJob: 0 Geräteinformationen abrufen done, calling callback DeviceJob: 0 Geräteinformationen abrufen callback returned Job: 1 Bibliotheksinformationen festlegen started DeviceJob: 1 Bibliotheksinformationen festlegen done, calling callback DeviceJob: 1 Bibliotheksinformationen festlegen callback returned Job: 2 Gerätebücherliste abrufen started DEBUG: 15.7 USBMS: Fetching list of books from device. Device= POCKETBOOK740 oncard= None DEBUG: 15.7 USBMS: dirs are: /Volumes/LILLIFEE/ books Job: 0 Geräteinformationen abrufen finished Keine Details verfügbar. Job: 1 Bibliotheksinformationen festlegen finished Keine Details verfügbar. DEBUG: 17.7 USBMS: scan from root True /Volumes/LILLIFEE/ DEBUG: 18.0 USBMS: count found in cache: 6462, count of files in metadata: 6462, need_sync: False DEBUG: 18.0 USBMS: Finished fetching list of books from device. oncard= None DEBUG: 18.0 USBMS: Fetching list of books from device. Device= POCKETBOOK740 oncard= carda DEBUG: 18.0 USBMS: Fetching list of books from device. Device= POCKETBOOK740 oncard= cardb DeviceJob: 2 Gerätebücherliste abrufen done, calling callback DeviceJob: metadata_downloaded: Starting set_books_in_library DeviceJob: set_books_in_library: books to process= 6462 Job: 2 Gerätebücherliste abrufen finished Keine Details verfügbar. DeviceJob: set_books_in_library finished: time= 5.241307020187378 DeviceJob: metadata_downloaded: updating views DeviceJob: metadata_downloaded: syncing DeviceJob: metadata_downloaded: refreshing ondevice DeviceJob: metadata_downloaded: sending metadata_available signal READING LIST: Metadata available: {'main': {'device_store_uuid': '3dd98826-5d97-4054-a254-f3c222e134d7', 'device_name': 'PocketBook 632', 'location_code': 'main', 'last_library_uuid': None, 'calibre_version': '6.3.0', 'date_last_connected': '2022-08-18T18:10:24.557998+00:00', 'prefix': '/Volumes/LILLIFEE/'}} READING LIST: Sync Now - force_sync= False DeviceJob: 2 Gerätebücherliste abrufen callback returned Job: 3 Metadaten zum Gerät senden started DEBUG: 24.5 USBMS: starting sync_booklists Job: 2 Gerätebücherliste abrufen finished Keine Details verfügbar. DEBUG: 37.9 USBMS: finished sync_booklists DeviceJob: 3 Metadaten zum Gerät senden done, calling callback DeviceJob: 3 Metadaten zum Gerät senden callback returned Job: 3 Metadaten zum Gerät senden finished Keine Details verfügbar. Via gui i can setup the pocketbook "Gerät konfigurieren" doesnt have any entry for my #read. I can configure the plugin directly in extensions -> #read is set. Now i am gettig out of ideas... What has changed in the meanwhile on my system? What can i do to get it working again? osx 11.6.x, calibre 6.x Device-info got from my mac: PocketBook1040: Produkt-ID: 0x0001 Hersteller-ID: 0x18d1 (Google Inc.) Version: 1.01 Seriennummer: 20080411 Geschwindigkeit: Bis zu 480 MBit/s Hersteller: Obreey Standort-ID: 0x14300000 / 12 Verfügbare Stromstärke (mA): 500 Erforderliche Stromstärke (mA): 500 Zusätzlicher Betriebsstrom (mA): 0 Edit: I changed the vendor-ID in device.py, zipped the files again, installed and now it syncs. After thinking around i remember that when i played a lot with howto upload the boos to my (new) PB, i noticed that after deleting books from PB and installing them newly, on the PB the reading-status was like before deleting my books. So it never worked before. I'm so sorry for saying "It works" in previous message #9. The only thing what is strange after reinstalling the changed plugin: Code:
DEBUG: 33.6 POCKETBOOK632: ['Walter Isaacson'] DEBUG: 33.6 POCKETBOOK632: Isaacson, Walter DEBUG: 34.1 POCKETBOOK632: Title or author mismatch DEBUG: 34.1 POCKETBOOK632: Steinzeit-Technik Steinzeit-Technik DEBUG: 34.1 POCKETBOOK632: Steinzeit-Technik Steinzeit-Technik DEBUG: 34.1 POCKETBOOK632: ['John Plant'] DEBUG: 34.1 POCKETBOOK632: Plant, John DEBUG: 34.2 POCKETBOOK632: Title or author mismatch DEBUG: 34.2 POCKETBOOK632: Wärmepumpen ohne Vorkenntnisse Wärmepumpen ohne Vorkenntnisse DEBUG: 34.2 POCKETBOOK632: Wärmepumpen ohne Vorkenntnisse Wärmepumpen ohne Vorkenntnisse DEBUG: 34.2 POCKETBOOK632: ['Benjamin Spahic'] DEBUG: 34.2 POCKETBOOK632: Spahic, Benjamin Job: 2 Gerätebücherliste abrufen finished Last edited by igorius; 08-18-2022 at 04:25 PM. Reason: Added OS-info |
![]() |
![]() |
![]() |
#13 |
Zealot
![]() Posts: 118
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
|
Here i found an error with pdf-handling:
Code:
Device using plugboard pdf POCKETBOOK632 None Setting metadata in: Ich lerne Segeln : Mit Fragenkatalog zum Segelgrundschein at: /var/folders/ks/vqsqkyls4xl00p586x0_59940000z8/C/calibre_6.3.0_tmp_air5bm5t/iw4myfuicaltmpfmt.pdf Failed to set metadata for the PDF format of: Ich lerne Segeln : Mit Fragenkatalog zum Segelgrundschein Traceback (most recent call last): File "calibre/utils/podofo/__init__.py", line 36, in set_metadata File "calibre/utils/ipc/simple_worker.py", line 255, in fork_job File "calibre/utils/ipc/simple_worker.py", line 180, in run_job File "calibre/utils/ipc/simple_worker.py", line 119, in communicate calibre.utils.ipc.simple_worker.WorkerError: Worker failed During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre/customize/ui.py", line 454, in set_file_type_metadata File "calibre/customize/builtins.py", line 525, in set_metadata File "calibre/ebooks/metadata/pdf.py", line 185, in set_metadata File "calibre/utils/podofo/__init__.py", line 40, in set_metadata Exception: Failed to set PDF metadata in (Ich lerne Segeln : Mit Fragenkatalog zum Segelgrundschein): Traceback (most recent call last): File "calibre/utils/ipc/simple_worker.py", line 303, in main File "calibre/utils/podofo/__init__.py", line 97, in set_metadata_ podofo.Error: ePdfError_InvalidDataType File: /private/var/folders/wj/cqy1nsyn4wn94d96btkldt0r0000gn/T/t/podofo-csbnzc9f/src/podofo/doc/PdfMemDocument.cpp Line: 263 Handler fixes issue #49 File: /private/var/folders/wj/cqy1nsyn4wn94d96btkldt0r0000gn/T/t/podofo-csbnzc9f/src/podofo/base/PdfParser.cpp Line: 272 Unable to load objects from file. File: /private/var/folders/wj/cqy1nsyn4wn94d96btkldt0r0000gn/T/t/podofo-csbnzc9f/src/podofo/base/PdfTokenizer.cpp Line: 589 ![]() |
![]() |
![]() |
![]() |
#14 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
Quote:
So to delete all read statuses you need to delete the read column from calibre too and recreate it. |
|
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 33985
Join Date: Oct 2010
Device: Pocketbook HD Touch 3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Device Plugin] Kobo Touch Extended Driver | jgoguen | Plugins | 3029 | 08-25-2024 03:37 PM |
Screensaver (coverimage plugin) on Pocketbook device won't work | Raymen3d3 | KOReader | 0 | 02-22-2021 06:37 PM |
[Device Plugin]KoboTouch driver for calibre 1.48 | davidfor | Plugins | 4 | 12-27-2015 06:03 AM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Driver Plugin not rekognized | silentguy | Plugins | 2 | 12-01-2010 12:14 PM |