from calibre.ebooks.oeb.polish.replace import rename_files
rename_files(container, {oldname1:newname1, oldname2:newname2})
That's all you need to do for any kind of file.
Just be careful not to rename files that must not be renamed, such as files in the META-INF directory.
|