inital cbr support
This commit is contained in:
parent
60ab6a5244
commit
6d19dd5e81
6 changed files with 44 additions and 4 deletions
|
|
@ -84,6 +84,8 @@ class FileHandler(OMLHandler):
|
|||
self.set_status(404)
|
||||
return
|
||||
mimetype = {
|
||||
'cbr': 'application/x-cbr',
|
||||
'cbz': 'application/x-cbz',
|
||||
'epub': 'application/epub+zip',
|
||||
'pdf': 'application/pdf',
|
||||
'txt': 'text/plain',
|
||||
|
|
@ -108,7 +110,9 @@ class ReaderHandler(OMLHandler):
|
|||
if not item:
|
||||
self.set_status(404)
|
||||
return
|
||||
if item.info['extension'] == 'epub':
|
||||
if item.info['extension'] in ('cbr', 'cbz'):
|
||||
html = 'html/cbr.html'
|
||||
elif item.info['extension'] == 'epub':
|
||||
html = 'html/epub.html'
|
||||
elif item.info['extension'] == 'pdf':
|
||||
html = 'html/pdf.html'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue