This commit is contained in:
Kovid Goyal 2010-03-09 12:48:27 -07:00
parent 6085c0886d
commit 4e943c0224
4 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ class BOOX(HANLINV3):
supported_platforms = ['windows', 'osx', 'linux'] supported_platforms = ['windows', 'osx', 'linux']
# Ordered list of supported formats # Ordered list of supported formats
FORMATS = ['epub', 'fb2', 'pdf', 'html', 'txt', 'rtf', 'mobi', 'prc', 'chm'] FORMATS = ['epub', 'fb2', 'djvu', 'pdf', 'html', 'txt', 'rtf', 'mobi', 'prc', 'chm']
VENDOR_ID = [0x0525] VENDOR_ID = [0x0525]
PRODUCT_ID = [0xa4a5] PRODUCT_ID = [0xa4a5]

View File

@ -32,7 +32,7 @@ def get_metadata(stream):
if stream_type: if stream_type:
stream_type = stream_type[1:] stream_type = stream_type[1:]
if stream_type in ('lit', 'opf', 'prc', 'mobi', 'fb2', 'epub', if stream_type in ('lit', 'opf', 'prc', 'mobi', 'fb2', 'epub',
'rb', 'imp', 'pdf', 'lrf'): 'rb', 'imp', 'pdf', 'lrf', 'azw'):
with TemporaryDirectory() as tdir: with TemporaryDirectory() as tdir:
with CurrentDir(tdir): with CurrentDir(tdir):
stream = extract_member(path, match=None, name=f, stream = extract_member(path, match=None, name=f,

View File

@ -23,7 +23,7 @@ def get_metadata(stream):
if stream_type: if stream_type:
stream_type = stream_type[1:] stream_type = stream_type[1:]
if stream_type in ('lit', 'opf', 'prc', 'mobi', 'fb2', 'epub', if stream_type in ('lit', 'opf', 'prc', 'mobi', 'fb2', 'epub',
'rb', 'imp', 'pdf', 'lrf'): 'rb', 'imp', 'pdf', 'lrf', 'azw'):
with TemporaryDirectory() as tdir: with TemporaryDirectory() as tdir:
with CurrentDir(tdir): with CurrentDir(tdir):
path = zf.extract(f) path = zf.extract(f)

View File

@ -135,7 +135,7 @@ def option_parser():
'to SMTP server.')) 'to SMTP server.'))
r=parser.add_option_group('SMTP RELAY', r=parser.add_option_group('SMTP RELAY',
'Options to use an SMTP relay server to send mail. ' 'Options to use an SMTP relay server to send mail. '
'%prog will try to send the email directly unless --relay is ' 'calibre will try to send the email directly unless --relay is '
'specified.').add_option 'specified.').add_option
r('-r', '--relay', help=('An SMTP relay server to use to send mail.')) r('-r', '--relay', help=('An SMTP relay server to use to send mail.'))
r('-p', '--port', default=-1, r('-p', '--port', default=-1,