Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2026, 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 Yesterday, 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,228
Karma: 7326470
Join Date: Dec 2021
Location: England
Device: none
Does this work with latest Thorium 3.3?
Martinoptic is offline   Reply With Quote
Old Yesterday, 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: 13
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 Yesterday, 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; Yesterday at 01:57 PM. Reason: added details ))
batonebo is offline   Reply With Quote
Old Yesterday, 04:03 PM   #5
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: 13
Karma: 100010
Join Date: Mar 2026
Device: Kindle Paperwhite 11th Gen
Quote:
Originally Posted by batonebo View Post
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)
Oooh, extremely nice!

Hard to argue that a standalone (Thorium-less) Rust-based CLI (or WASM single-page web interface) is anything other than a much nicer user experience!!!

Curious though, am I reading it correctly that the extent to which spoofing goes when fetching the encrypted epub is to set the User-Agent to "ThoriumReader/windows-mac-linux/1.1"?

I guess one reason I opted for the "remoting Thorium approach" (other than the obvious of not having the cryptographic know-how to implement what's in that radicle repo), is that I perceived doing so (perhaps naively?) as being a little bit safer in terms of potential risk of being e.g. blacklisted by stores or license providers...

Do you know if Thorium itself uses that User-Agent internally? Or whether this simple spoofing approach has otherwise been used widely in the past without issue?
DeLitCommonPotoo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:12 AM.


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