From b0867660647f8a369171809bbe44b1897f339d75 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Jan 2019 14:59:33 +0530 Subject: [PATCH] Content server: Try to detect if a book file has been edited outside of calibre and serve the updated copy --- src/calibre/srv/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/books.py b/src/calibre/srv/books.py index db4567f53d..ee4ce4ab83 100644 --- a/src/calibre/srv/books.py +++ b/src/calibre/srv/books.py @@ -131,7 +131,7 @@ def book_manifest(ctx, rd, book_id, fmt): if not ctx.has_id(rd, db, book_id): raise BookNotFound(book_id, db) with db.safe_read_lock: - fm = db.format_metadata(book_id, fmt) + fm = db.format_metadata(book_id, fmt, allow_cache=False) if not fm: raise HTTPNotFound('No %s format for the book (id:%s) in the library: %s' % (fmt, book_id, library_id)) size, mtime = map(int, (fm['size'], time.mktime(fm['mtime'].utctimetuple())*10))