mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 12:53:25 +02:00
...
This commit is contained in:
parent
9bb060124e
commit
848fe8096d
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ def get_cover(self, id, thumbnail=False, thumb_width=60, thumb_height=80):
|
|||
updated = self.build_time
|
||||
else:
|
||||
with cover as f:
|
||||
updated = fromtimestamp(os.stat(f.name).st_mtime)
|
||||
updated = fromtimestamp(os.fstat(f.fileno()).st_mtime)
|
||||
cover = f.read()
|
||||
cherrypy.response.headers['Last-Modified'] = self.last_modified(updated)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue