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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2024, 10:27 AM   #1
Snoweuph
Junior Member
Snoweuph began at the beginning.
 
Snoweuph's Avatar
 
Posts: 1
Karma: 10
Join Date: Aug 2024
Device: Kindle 4
Extract Mobi Max Location value

Hi,

I'm trying to extract the Max Location value from a .mobi to use it in combination with a .han file from my kindle to let a script decide if I finished reading that manga.

I just can't seem to get the max Location info extracted from the .mobi, any good suggestions?
Snoweuph is offline   Reply With Quote
Old 08-12-2024, 08:08 PM   #2
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,559
Karma: 100606751
Join Date: Apr 2011
Device: pb360
The wiki page: https://wiki.mobileread.com/wiki/Page_numbers
and the thread: https://www.mobileread.com/forums/sh...d.php?t=159357
give location number as:
Code:
floor(a * 2 / 300 + 1)
where a is the byte locatation in the RAWML file for the book. So for the maximum location a is the total number of bytes in the RAWML file. Use:
Code:
kindleunpack -d book_file_name
to produce the assembled_text.dat RAWML file

Alternatively, the length is given in the p_contentSize column in the row for the book in the sqlite database cc.db somewhere under /var on the kindle.
j.p.s 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
Can't extract text in image for MOBI/AZW3, despite using OCR, in Calibre for Kindle ck18ss@brocku.ca Conversion 1 08-15-2022 06:34 PM
How to extract text and images from an .mobi file (ebook)? Arkadya Workshop 7 02-28-2019 06:14 AM
Extract table of contents from mobi file oecherprinte Kindle Formats 7 04-16-2012 01:10 PM
Extract KF8 out of MOBI to sell on my own page. Drasek Kindle Formats 2 04-11-2012 12:44 PM
is it possible to extract the html from mobi? codrutoctavian Kindle Formats 1 02-15-2012 08:24 PM


All times are GMT -4. The time now is 07:22 AM.


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