Yet another mime type for xpgt files

This commit is contained in:
Kovid Goyal 2014-08-01 18:28:33 +05:30
parent 63e8f0de50
commit 456c61b8fa

View File

@ -11,7 +11,7 @@ from PyQt4.Qt import QTextCharFormat
from calibre.ebooks.oeb.base import OEB_DOCS, OEB_STYLES
from calibre.ebooks.oeb.polish.container import guess_type
_xml_types = {'application/oebps-page-map+xml', 'application/vnd.adobe-page-template+xml'} | {
_xml_types = {'application/oebps-page-map+xml', 'application/vnd.adobe-page-template+xml', 'application/page-template+xml'} | {
guess_type('a.'+x) for x in ('ncx', 'opf', 'svg', 'xpgt', 'xml')}
def syntax_from_mime(name, mime):