Reading Metadata from OPF file in Zip Archive
I download Audio books from an online service in the .mp3 format. I have a script that scrapes the web page for pertinent meta data and creates a .opf file. I locate the .mp3's, cover.jpg and .opf file in the same directory and then compress them to a .zip archive. When I drop the .zip file into the calibre library, it reads the .opf file stored in the .zip and sets the meta data (title, series, series index, author, publisher, pub date, description) correctly. The problem is that it does not grab the cover.jpg referenced in the .opf and stored in the .zip.
I looked at the way that the .epub format stores the cover and references it in the .opf and tried to mimic that without any success. Does anyone have any experience doing this?
|