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'
|
return 'html'
|
||||||
if mime in OEB_STYLES:
|
if mime in OEB_STYLES:
|
||||||
return 'css'
|
return 'css'
|
||||||
if mime == guess_type('a.opf'):
|
if mime in {guess_type('a.opf'), guess_type('a.ncx'), guess_type('a.xml')}:
|
||||||
return 'xml'
|
|
||||||
if mime == guess_type('a.ncx'):
|
|
||||||
return 'xml'
|
|
||||||
if mime == guess_type('a.xml'):
|
|
||||||
return 'xml'
|
return 'xml'
|
||||||
if mime.startswith('text/'):
|
if mime.startswith('text/'):
|
||||||
return 'text'
|
return 'text'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user