mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-28 17:49:06 +01:00
Fix music fine file with inode
This commit is contained in:
parent
7bc5902ea8
commit
0717ae39db
@ -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…
Reference in New Issue
Block a user