Hi all,
I created a small script to sync the current book progress in KoReader with the PocketBook default library.
Link:
https://github.com/jjrrw174/PocketBo...ith-PB-Library
I would like to try and make this run in the background of KoReader. Something like on page refresh, or a configurable timer. If anyone has info on how this could work please reply
Info
Small .sh script to update PocketBook library with current KoReader book progress
TESTED ON POCKETBOOK ERA, LATEST FIRMWARE
Requires SH_IVTOOLS
A shell script that will take your most recently opend KoReader book and insert or update a record to the PocketBook library. SH_IVTOOL is used to print a summary of the Book title, id, current page, and total number of pages and wether a update or insert happened.
How it works:
- Open the KoReader statistics.sqlite3 database and find the most recently updated book
- Get the total pages ,current page and, book title from the KoReader statistics.sqlite3 database with greatest last open time
- Find the book title in the explorer-3.db database
- Get the ID from the matching book title from the explorer3.db database
- Find if a record exists in the books_settings table with the bookid in the explorer-3.db database
- If no record, insert a record for this
- If record is found, update the current record
To install:
- Copy the updateCurrentPage.app to the /applications/ folder of your PocketBook
- Download the SH_IVTOOLS from http://komary.net/sh_ivtool/
- Copy the SH_IVTOOLS to /mnt/ext1/system/bin folder and rename to SH_IVTOOL.app
To use:
- Start device
- Go to applications
- Scroll to find @currentPageUpdate
- Press @currentPageUpdate
To-do:
Add ability to sync all book progress
Add ability to detect current page = total pages and mark as complete
Add this to KoReader as an automated process(On page refresh, every x minutes, on standy, etc.)