mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 01:15:06 +02:00
Update:Prefer epub ebook file when setting ebook #1825, validate ebookLocation
This commit is contained in:
parent
9547824aaa
commit
fde07d26e5
4 changed files with 27 additions and 12 deletions
|
@ -50,6 +50,10 @@ class LibraryFile {
|
|||
return this.fileType === 'audio' || this.fileType === 'ebook' || this.fileType === 'video'
|
||||
}
|
||||
|
||||
get isEBookFile() {
|
||||
return this.fileType === 'ebook'
|
||||
}
|
||||
|
||||
get isOPFFile() {
|
||||
return this.metadata.ext === '.opf'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue