import kepub as epub, http://wiki.mobileread.com/wiki/Kepub
This commit is contained in:
parent
3ba16900e6
commit
b33d066322
4 changed files with 7 additions and 2 deletions
|
|
@ -32,8 +32,9 @@ def metadata(f, from_=None):
|
|||
|
||||
if ext == 'cbr':
|
||||
info = cbr.info(f)
|
||||
elif ext == 'epub':
|
||||
elif ext in ('epub', 'kepub'):
|
||||
info = epub.info(f)
|
||||
data['extension'] = 'epub'
|
||||
elif ext == 'pdf':
|
||||
info = pdf.info(f)
|
||||
elif ext == 'txt':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue