Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Reading and Management

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:06 AM   #1
Martin Krpan
Junior Member
Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!Martin Krpan rocks like Gibraltar!
 
Posts: 6
Karma: 100010
Join Date: Mar 2026
Device: Kindle Paperwhite 11th gen
Thorium Reader EPUB Extractor

Thorium Book Extractor

Thorium Book Extractor is a small utility that automates the process of extracting EPUB books exported from the Thorium Reader. It follows the manual process described in the shkspr.mobi article and performs the required steps automatically.

The tool takes an EPUB file exported from Thorium Reader and generates a usable version of the book.

Requirements
Before using this tool, make sure the following requirements are met:
  • Thorium Reader version: 3.1.0
  • The book must be exported as EPUB from Thorium Reader first
  • Thorium Reader must be closed before running the extractor
Download Thorium Reader 3.1.0 here:
https://github.com/edrlab/thorium-re...etup.3.1.0.exe

How It Works
The extractor automates the manual extraction process described in the article linked above. After exporting a book from Thorium Reader, the tool processes the file and generates a new EPUB file.

The output file will have the same name as the original file with _decrypted appended.
original_book.epub -> original_book_decrypted.epub

Step 1 – Export the Book from Thorium Reader
  1. Open the .lcpl file in Thorium Reader.
  2. Export the book as EPUB.
  3. Close Thorium Reader completely.
The extractor will not work correctly if Thorium Reader is running.

Step 2 – Run Thorium Book Extractor
Option 1: Process a Single Book
Run the tool from the terminal:
Code:
ThoriumBookExtractor.exe path_to_the_book.epub
Option 2: Process Multiple Books
You can also extract multiple EPUB files automatically.
  1. Place ThoriumBookExtractor.exe in the folder containing your EPUB files.
  2. Double-click the executable.
The application will:
  • Scan the folder for .epub files
  • Process each file
  • Generate a decrypted version for each one
ThoriumBookExtractor opens and closes the Thorium Reader automatically.
This is necessary for the extraction process.
Do not close automatically opened Thorium Reader while the app is running.


Source code and the executable file can be found here:
https://gitflic.ru/project/xna83444/...book-extractor
Martin Krpan is offline   Reply With Quote
Old Today, 07:36 AM   #2
Martinoptic
Bibliophist
Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.Martinoptic ought to be getting tired of karma fortunes by now.
 
Martinoptic's Avatar
 
Posts: 8,225
Karma: 7326470
Join Date: Dec 2021
Location: England
Device: none
Does this work with latest Thorium 3.3?
Martinoptic is offline   Reply With Quote
Advert
Old Today, 01:05 PM   #3
DeLitCommonPotoo
Member
DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!DeLitCommonPotoo rocks like Gibraltar!
 
Posts: 12
Karma: 100010
Join Date: Mar 2026
Device: Kindle Paperwhite 11th Gen
Quote:
Originally Posted by Martinoptic View Post
Does this work with latest Thorium 3.3?
Probably not. As after edent's blog post highlighting the extraction techniques this tool uses Readium added code to try to block connecting a debugger - which this tool relies on.

This Docker-based tool does work with Thorium 3.3, because instead of trying to connect directly to Thorium, it wraps Thorium with an Electron app script (Electron version needs to match exactly what is used to build Thorium).

OP might be able to patch their Windows tool to use the same approach, (if you wrap Thorium will an Electron app you can have the debugger connect and remove the command line args before handing over executionto Thorium) but I'm not sure how practical that is. It might not be easy to automatically download and execute Electron on Windows, and also might not be worthwhile requiring the user to install Electron on their own for the tool to work.
DeLitCommonPotoo is offline   Reply With Quote
Old Today, 01:56 PM   #4
batonebo
Junior Member
batonebo began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2026
Device: none
Thorium is unnecessary, you can simply decrypt the epub/pdf/etc directly.

This (local) browser-based file (download and open in browser) does the whole decryption alone. Source code at rad:z41uCZqyBUSRQoBCQq4Bpq8ZSCHKr (radicle repository)

Last edited by batonebo; Today at 01:57 PM. Reason: added details ))
batonebo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Calibre with Thorium e-reader (Windows) Mr_H_Poirot Calibre 3 02-10-2026 01:28 AM
Thorium Reader 1.8.0 TeamEDRLab Reading and Management 27 07-03-2025 06:53 AM
problem with Thorium (how do I "free" an EPub that only opens with that software?) Jacques Q. General Discussions 5 01-12-2023 01:36 AM
Glo Kobo Annotation Extractor drjd Kobo Reader 11 03-23-2016 09:25 AM
Extractor.epub: Convert VitalSource EPUBBook to regular EPUB cyanic Other formats 1 11-08-2015 05:08 AM


All times are GMT -4. The time now is 03:42 PM.


MobileRead.com is a privately owned, operated and funded community.