mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Displaying ebook covers.
This commit is contained in:
parent
ede9d2236b
commit
8874dac5c9
1 changed files with 4 additions and 0 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue