View Single Post
Old 05-07-2023, 01:23 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,606
Karma: 28548974
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply add some custom metadata field to the OPF file in the EPUB you generate. Nothing else is likely to remove it. The field can point to the original acsm file or just have a hex encoded dump of the data. Then in postadd use db.format_abspath() to get the path to the added EPUB file, read the added field and optionally remove it and add the acsm file with add_extra_file
kovidgoyal is online now   Reply With Quote