Fix music fine file with inode

This commit is contained in:
advplyr 2022-12-24 11:12:39 -06:00
parent 7bc5902ea8
commit 0717ae39db
2 changed files with 2 additions and 2 deletions

View File

@ -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') {

View File

@ -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) {