Add .pobi filetype to list of formats that the Kindle supports.

This commit is contained in:
Kovid Goyal 2011-12-02 23:49:16 +05:30
parent b10ce82a00
commit 69373bb236
3 changed files with 3 additions and 3 deletions

View file

@ -255,7 +255,7 @@ def get_metadata(self, stream, ftype):
class MOBIMetadataReader(MetadataReaderPlugin):
name = 'Read MOBI metadata'
file_types = set(['mobi', 'prc', 'azw', 'azw4'])
file_types = set(['mobi', 'prc', 'azw', 'azw4', 'pobi'])
description = _('Read metadata from %s files')%'MOBI'
def get_metadata(self, stream, ftype):

View file

@ -287,7 +287,7 @@ class KINDLE2(KINDLE):
name = 'Kindle 2/3 Device Interface'
description = _('Communicate with the Kindle 2/3 eBook reader.')
FORMATS = KINDLE.FORMATS + ['pdf', 'azw4']
FORMATS = KINDLE.FORMATS + ['pdf', 'azw4', 'pobi']
DELETE_EXTS = KINDLE.DELETE_EXTS
PRODUCT_ID = [0x0002, 0x0004]

View file

@ -30,7 +30,7 @@ class ParserError(ValueError):
'html', 'htmlz', 'xhtml', 'pdf', 'pdb', 'pdr', 'prc', 'mobi', 'azw', 'doc',
'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip',
'rb', 'imp', 'odt', 'chm', 'tpz', 'azw1', 'pml', 'pmlz', 'mbp', 'tan', 'snb',
'xps', 'oxps', 'azw4', 'book', 'zbf']
'xps', 'oxps', 'azw4', 'book', 'zbf', 'pobi']
class HTMLRenderer(object):