From 8874dac5c9cef619dc6ea5603596bf519a9ca27e Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 3 Apr 2023 11:17:14 -0600 Subject: [PATCH] Displaying ebook covers. --- app/src/components/Common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/components/Common.js b/app/src/components/Common.js index 0262bbc3..d7b89253 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -473,6 +473,10 @@ export function findPosterPath(file) { if (screenshot_path) { return screenshot_path; } + if (file['data'] && file['data']['cover_path']) { + // Ebook. + return file['data']['cover_path']; + } if (video && video['poster_path']) { // file is a video model. return video['poster_path'];