mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
86a74565e8
commit
58488d0e54
@ -124,7 +124,7 @@ def book_manifest(ctx, rd, book_id, fmt):
|
||||
with db.safe_read_lock:
|
||||
fm = db.format_metadata(book_id, fmt)
|
||||
if not fm:
|
||||
raise HTTPNotFound('No %s format for the book %s in the library: %s' % (fmt, book_id, library_id))
|
||||
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))
|
||||
bhash = book_hash(db.library_id, book_id, fmt, size, mtime)
|
||||
with cache_lock:
|
||||
|
Loading…
x
Reference in New Issue
Block a user