mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 19:44:09 +02:00
...
This commit is contained in:
parent
2e8a1be0c3
commit
363d10096b
1 changed files with 1 additions and 5 deletions
|
|
@ -14,11 +14,7 @@ def syntax_from_mime(mime):
|
|||
return 'html'
|
||||
if mime in OEB_STYLES:
|
||||
return 'css'
|
||||
if mime == guess_type('a.opf'):
|
||||
return 'xml'
|
||||
if mime == guess_type('a.ncx'):
|
||||
return 'xml'
|
||||
if mime == guess_type('a.xml'):
|
||||
if mime in {guess_type('a.opf'), guess_type('a.ncx'), guess_type('a.xml')}:
|
||||
return 'xml'
|
||||
if mime.startswith('text/'):
|
||||
return 'text'
|
||||
|
|
|
|||
Loading…
Reference in a new issue