mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-29 01:58:49 +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) {
|
async saveEmbeddedCoverArt(libraryItem) {
|
||||||
const audioFileWithCover = null
|
let audioFileWithCover = null
|
||||||
if (libraryItem.mediaType === 'book') {
|
if (libraryItem.mediaType === 'book') {
|
||||||
audioFileWithCover = libraryItem.media.audioFiles.find(af => af.embeddedCoverArt)
|
audioFileWithCover = libraryItem.media.audioFiles.find(af => af.embeddedCoverArt)
|
||||||
} else if (libraryItem.mediaType == 'podcast') {
|
} else if (libraryItem.mediaType == 'podcast') {
|
||||||
|
@ -115,7 +115,7 @@ class Music {
|
|||||||
}
|
}
|
||||||
|
|
||||||
findFileWithInode(inode) {
|
findFileWithInode(inode) {
|
||||||
return this.audioFile && this.audioFile.ino === inode
|
return (this.audioFile && this.audioFile.ino === inode) ? this.audioFile : null
|
||||||
}
|
}
|
||||||
|
|
||||||
setData(mediaData) {
|
setData(mediaData) {
|
||||||
|
Loading…
Reference in New Issue
Block a user