mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
2e8a1be0c3
commit
363d10096b
@ -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…
x
Reference in New Issue
Block a user