mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-17 17:42:07 +02:00
Fix music fine file with inode
This commit is contained in:
parent
7bc5902ea8
commit
0717ae39db
2 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ class CoverManager {
|
|||
}
|
||||
|
||||
async saveEmbeddedCoverArt(libraryItem) {
|
||||
const audioFileWithCover = null
|
||||
let audioFileWithCover = null
|
||||
if (libraryItem.mediaType === 'book') {
|
||||
audioFileWithCover = libraryItem.media.audioFiles.find(af => af.embeddedCoverArt)
|
||||
} else if (libraryItem.mediaType == 'podcast') {
|
||||
|
|
|
@ -115,7 +115,7 @@ class Music {
|
|||
}
|
||||
|
||||
findFileWithInode(inode) {
|
||||
return this.audioFile && this.audioFile.ino === inode
|
||||
return (this.audioFile && this.audioFile.ino === inode) ? this.audioFile : null
|
||||
}
|
||||
|
||||
setData(mediaData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue