View Single Post
Old 06-04-2021, 08:32 AM   #1
wold
Zealot
wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.wold knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 121
Karma: 87007
Join Date: Apr 2021
Device: Lux 5, Libra 2, PRS-T2N
[GUI Plugin] PocketBook Tools

Basic Calibre plugin offering several tools for (recent) Pocketbook readers.

It should support most recent HD, Lux, Basic and Inkpad models.
When Calibre recognises an USB connected PocketBook reader, the menu options should become available.

Current features:
  • Merge/fix annotations on device. When replacing e-book files, older highlights/notes may become hidden.
  • Backup databases (explorer-2/3.db and books.db) to a specified directory.
  • Copy .acsm, .app, .dic/.pbi and font files to their appropiate folders on the connected reader. (optionally copy from .zip files, and auto-delete the source file)
  • Export highlights to HTML (sorted by either date or title). For more features checkout the Annotations plugin.

The help file contains more details.

Suggestions are welcome.

Click image for larger version

Name:	screen-menu.png
Views:	1234
Size:	39.5 KB
ID:	187474Click image for larger version

Name:	screen-config.png
Views:	1206
Size:	52.5 KB
ID:	187475

Requirements:
Plugin was tested with the 'PocketBook Lux 2' driver with Calibre versions 3.48-5.x, under Linux and Windows 10.
Plugin will also run under 2.58 but could not be tested due to device driver issues (if wanting, checkout CLI options for main.py). *Uses Vendor ID = [0xfffe]

Test results for MacOS and devices are welcome.
Tested so far: Lux 5, PB Color, Inkpad HD 7,8"

Installation:
Open Preferences|Plugins|Get new plugins to install the 'PocketBook Tools' plugin.
Or, download the attached zip file and install the plugin manually.

Version History
Spoiler:
Changelog
---------
0.9.6 | 2022 Aug, 26th
- Hotfix for Calibre 6.x due to Qt6 migration

0.9.5 | 2021 Sep, 1th
- Fixed to work with a single profile (thanks to romainsc @github)
- Fixed dialogtext for Merge/fix annotations

0.9.4 | 2021 June, 30
- added uploader GUI
- Prevent copy to/from same location
- Fixed minor filepath issue, and merge/fix dialog text
- reworked zip and delete related code

0.9.3 | 2021 June, 11th
- dialogs provide more feedback on number of backup/highlights/uploads, etc
- db backup adds date/time to backup filenames
- fixed: calibre 5 uses correct OS file dialogs

- fixed: highlight newlines exported as html breaks
- highlights without page(offset) have page set to '?'
- mac/linux: zip extraction restores modify/access dates (not creation)
- windows: fixed opening local file links in dialogs

- moved annotation count into functions (from device connection phase)
- compacted and simplified code
- minor changes/fixes

0.9.2 | 2021 June 6th, First MR release
- Simplified merge/fix annotations tool
- Minor changes (plugin name, PEP style)

0.9.1 | 2021 June
- Added merge/fix annotations tool
- Minor fixes (title/author sorting, page offset increment, config menu QT issue)

0.9.0 First version


Author PS:
This was developed for personal use and for learning purposes. If it proves useful to you, all the better.
Attached Files
File Type: zip pocketbook_tools.zip (42.7 KB, 31499 views)

Last edited by wold; 08-26-2022 at 11:04 AM. Reason: Updated zipfile
wold is offline   Reply With Quote