View Single Post
Old 06-24-2024, 06:38 PM   #59
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,859
Karma: 6120478
Join Date: Nov 2009
Device: many
I forgot the instructions ... In case anyone wants to try it:

unzip opf_id_updater.zip
cd opf_id_updater
python3 ./fix_opf_ids.py ./content.opf

It will spit out the updated opf to stdout.

Of course you can replace ./content.opf with the path to any opf you have lying around.
And you can redirect stdout to a file:

python3 ./fix_opf_ids.py PATH_TO_INPUT_OPF_FILE > PATH_TO_OUTPUT_OPF_FILE

I am sure there is an equivalent on Windows as well.

Last edited by KevinH; 06-24-2024 at 06:43 PM.
KevinH is online now   Reply With Quote