mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 00:04:29 +01:00
...
This commit is contained in:
parent
3edec38469
commit
83c5359df1
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ def refresh_mime_map(self):
|
|||
href = item.get('href')
|
||||
name = self.href_to_name(href, self.opf_name)
|
||||
if name in self.mime_map and name != self.opf_name:
|
||||
# some epubs include the opf in the manifest with an incorrect mime type
|
||||
self.mime_map[name] = item.get('media-type')
|
||||
|
||||
def clone_data(self, dest_dir):
|
||||
|
|
|
|||
Loading…
Reference in a new issue