mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5cb2225677
commit
c5335f476e
@ -211,7 +211,8 @@ class ContentServer(object):
|
|||||||
if not fm:
|
if not fm:
|
||||||
raise cherrypy.HTTPError(404, 'book: %d does not have format: %s'%(id, format))
|
raise cherrypy.HTTPError(404, 'book: %d does not have format: %s'%(id, format))
|
||||||
update_metadata = format in {'MOBI', 'EPUB', 'AZW3'}
|
update_metadata = format in {'MOBI', 'EPUB', 'AZW3'}
|
||||||
mi = newmi = self.db.get_metadata(id, index_is_id=True, cover_as_data=True, get_cover=update_metadata)
|
mi = newmi = self.db.get_metadata(
|
||||||
|
id, index_is_id=True, cover_as_data=True, get_cover=update_metadata)
|
||||||
|
|
||||||
cherrypy.response.headers['Last-Modified'] = \
|
cherrypy.response.headers['Last-Modified'] = \
|
||||||
self.last_modified(max(fm['mtime'], mi.last_modified))
|
self.last_modified(max(fm['mtime'], mi.last_modified))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user