From 2cf1d1fb7ada6266d30e37cc02ea35e639b34c03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Jan 2017 17:18:16 +0530 Subject: [PATCH] Store cover fname on book object for easy referral --- src/pyj/read_book/db.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/db.pyj b/src/pyj/read_book/db.pyj index 267ab99400..82ac33fcdf 100644 --- a/src/pyj/read_book/db.pyj +++ b/src/pyj/read_book/db.pyj @@ -140,6 +140,7 @@ class DB: 'manifest': None, 'cover_width': None, 'cover_height': None, + 'cover_fname': None, 'last_read_position': {}, }) ) @@ -174,6 +175,7 @@ class DB: blob = Blob([data], {'type':'image/jpeg'}) url = window.URL.createObjectURL(blob) img = new Image() + book.cover_fname = fname proceeded = False def done():