PbDbFixer/README.md

3.3 KiB

PbDbFixer

Motivation

Since Pocketbook has some problems with extracting metadata correctly from EPUB files, this program tries fix these issues. It tries to identify wrong database entries and fix it by reading the corresponding epub metadata.

Features

PbDbFixer tries to fix the following issues in the database

  • Correction of wrong firstauthor entries (books_impl table)
  • Correction of wrong first_author_letter entries (books_impl table)
  • Correction of wrong author entries (books_impl table)
  • Removing deleted e-books from the database (various tables)
  • Add missing genre if present in epub (genre and booktogenre tables)
  • Add missing series information (books_impl table)

The best results are achieved when metadata has been carefully maintained with Calibre.

Compatibility

This program has been tested on a PocketBook

  • Touch Lux 4 (software version 6.5)
  • Touch HD 3 (software version 6.7)
  • Era (software version 6.8) 1
  • InkPad 3 Pro (software version 6.8) 1
  • InkPad 4 (software version 6.8)
  • Verse Pro (software version 6.8) 1

It might work with other PocketBook devices/software versions. Please tell me if it works for you (and do make a backup of the explorer-3.db file before trying!).

Please note: As I do not currently own a PocketBook device, I am unfortunately unable to react to changes in the database structure. Perhaps you can send me your explorer-3.db so that I can take a look at the changes. Just get in touch with me.

Installation and Usage


WARNING:

Use at your own risk. In case of doubt it is not a mistake to make a backup of the file /system/explorer-3/explorer-3.db beforehand.


Just copy the executable file into the PocketBook's application directory. If you encounter duplicate authors or other issues (see "Features" above) in the PocketBook's library, open the applications screen and tap on the PbDbFixer icon.

If you don't see any changes:
There might be an explorer (which shows your library) process already running. Then you should just stop/kill it with the task manager. Putting the device to sleep and then wake it up might also work. Afterwards, the changes should be visible to the explorer.

Feedback

Feedback is highly appreciated. You can reach me via

Build

If you want to build PbDbFixer yourself, make sure that you have Rust's toolchain target armv7-unknown-linux-gnueabi installed. Additionaly, you should use PocketBook's SDK for being able to cross-compile specific for these devices. Don't forget to tell cargo which compiler/linker it has to invoke. In my case, I had to edit ~/.cargo/config.toml:

[target.armv7-unknown-linux-gnueabi]
linker = "SDKs/PB/SDK_6.3.0/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-gcc"

Now you can easily compile the stuff. Note that you have to tell where the libraries are located (LD_LIBRARY_PATH):

LD_LIBRARY_PATH="$HOME/SDKs/PB/SDK_6.3.0/SDK-B288/usr/lib" cargo build --release --target=armv7-unknown-linux-gnueabi

  1. User feedback ↩︎