Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:54 PM   #691
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 39,947
Karma: 154914010
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sirtel View Post
It may be a calibre issue, but it doesn't mean it's ok for Amazon to just delete random files from users' devices without any action on the user's part.
All I did was to replace EBOK with PDOC in check_fix.py in the plugin archive. I'm not sure that's a method everyone would want to use, as it replaces a feature (fix ASIN for Kindle Fire) with its opposite. Ideally the fix would be added as an additional feature, not replacing an existing feature, but I'm no coder and that would be beyond my scant skill set.
Perhaps replacing the check for EBOK in check_mobi.py with a check for PDOC?
DNSB is online now   Reply With Quote
Old Yesterday, 03:05 PM   #692
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,265
Karma: 227664182
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DNSB View Post
Perhaps replacing the check for EBOK in check_mobi.py with a check for PDOC?
Yes, but there must also be a way to change it, not only check.
Sirtel is offline   Reply With Quote
Old Yesterday, 03:13 PM   #693
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,989
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
In case anyone missed it the first time around:

https://github.com/SolaProject/mobi_...v-file#example

is a pure python, one-file module that can be used to check/change kindlebook metadata. Including EXTH[501].

It's also available to be installed with pip as mobi-header.
DiapDealer is offline   Reply With Quote
Old Yesterday, 03:17 PM   #694
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,265
Karma: 227664182
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DiapDealer View Post
In case anyone missed it the first time around:

https://github.com/SolaProject/mobi_...v-file#example

is a pure python, one-file module that can be used to check/change kindlebook metadata. Including EXTH[501].

It's also available to be installed with pip as mobi-header.
But you can't use it with many files in bulk like the Quality Check plugin, or can you? That was what I was looking for. It would be awfully time-consuming to change hundreds or even thousands of files one by one.
Sirtel is offline   Reply With Quote
Old Yesterday, 03:26 PM   #695
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,989
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Sirtel View Post
But you can't use it with many files in bulk like the Quality Check plugin, or can you? That was what I was looking for. It would be awfully time-consuming to change hundreds or even thousands of files one by one.
Sure you can. Someone would have to put together a calibre user interface plugin that could be run on all Kindlebook formats of books selected in the library. But all the heavy lifting of editing the metadata would be done by the mobi_header module, so it shouldn't be a herculean task by any means.
DiapDealer is offline   Reply With Quote
Old Yesterday, 03:29 PM   #696
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 39,947
Karma: 154914010
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The check_fix.py change allows changing it. The change in check_mobi.py allows for choosing files that do not have PDOC as the cdetype.

Basically any instances in config.py, check_fix.py and check_mobi.py of EBOK (upper case) was changed to PDOC which made the dialogs make more sense.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-10-15 122500.png
Views:	24
Size:	9.3 KB
ID:	211428   Click image for larger version

Name:	Screenshot 2024-10-15 122800.png
Views:	24
Size:	21.8 KB
ID:	211429  
DNSB is online now   Reply With Quote
Old Yesterday, 06:26 PM   #697
haertig
Wizard
haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.haertig ought to be getting tired of karma fortunes by now.
 
Posts: 1,794
Karma: 26050790
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
Quote:
Originally Posted by DNSB View Post
Perhaps replacing the check for EBOK in check_mobi.py with a check for PDOC?
Since the length of the text string "EBOK" is the same length as the text string "PDOC", replacement could be as simple as this (on a Linux computer):

Code:
sed -e 's/EBOK/PDOC/' -i.backup 'filename.azw3'
The "sed" command on Linux works fine on binary files for things like this. But "sed" on Unix, Windows or some other OS may not handle binary files appropriately. A wise proverb: "An assumption is the first step towards a screw-up". So don't assume this will work on other OS'es, even if they have the "sed" command. You have been warned!

I do not know the structure of an AZW3 file, and it may be perfectly find to alter the length of text like this when doing a replacement. But I can't say that for sure, since I know nothing about AZW3 files and any checksums (or whatever) they may or may not contain.

If you are more daring and don't want to create a backup copy of the original file before editing, you can replace the "-i.backup" part of the command with simply "-i". This would be fine if you keep current and solid backups of your Calibre library.

You could write a simple "for loop" script around the "sed" command to find and cycle through all the azw3 files you want to modify.

You may want to add some bulletproofness to the script and make sure that "EBOK" only appears once in the file before you go modifying it. If it appears more than once, you only want to do the replacement on the appearance in the metadata part of the file (which is probably the first occurrence, but you'd have to verify that).

The way to check it the text string appears multiple times is:

Code:
strings 'filename.azw3' | grep EBOK | wc -l
Note that if you use "-i.backup" it will create a backup copy of every file before it gets modified. So you will need twice the amount of storage space to allow two copies of each file (at least until you remove the *.backup copies after you've determined all is well and good).
haertig is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amazon removed sort prices low to high from on-kindle store Pjama Amazon Kindle 28 04-26-2021 12:26 PM
Warning - Kindle Store button removed from Amazon app RCR Apple Devices 4 09-02-2011 03:35 PM
More ebooks removed from Amazon UK mr ploppy General Discussions 7 12-09-2010 01:12 PM
Amazon removed S/N info from Manage My Kindle page daffy4u News 68 08-18-2009 11:30 AM
Amazon Removed Gay Books from Rankings Moejoe News 167 05-02-2009 12:24 PM


All times are GMT -4. The time now is 05:20 PM.


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