mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 04:04:06 +01:00
Fix music fine file with inode
This commit is contained in:
1 parent
7bc5902ea8
commit
0717ae39db
2 files changed
+2
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user