Displaying ebook covers.

This commit is contained in:
Roland 2023-04-03 11:17:14 -06:00
parent ede9d2236b
commit 8874dac5c9
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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'];