Yesterday, 02:54 PM | #691 | |
Bibliophagist
Posts: 39,947
Karma: 154914010
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
Yesterday, 03:05 PM | #692 |
Grand Sorcerer
Posts: 11,265
Karma: 227664182
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
Yesterday, 03:13 PM | #693 |
Grand Sorcerer
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. |
Yesterday, 03:17 PM | #694 | |
Grand Sorcerer
Posts: 11,265
Karma: 227664182
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
Yesterday, 03:26 PM | #695 |
Grand Sorcerer
Posts: 27,989
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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.
|
Yesterday, 03:29 PM | #696 |
Bibliophagist
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. |
Yesterday, 06:26 PM | #697 | |
Wizard
Posts: 1,794
Karma: 26050790
Join Date: Sep 2017
Device: PW3, Fire HD8 Gen7, Moto G7, Sansa Clip v2, Ruizu X26
|
Quote:
Code:
sed -e 's/EBOK/PDOC/' -i.backup 'filename.azw3' 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 |
|
|
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 |