mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-05 02:34:56 +02:00
Fix:Podcast scanner get embedded cover art
This commit is contained in:
parent
c0ff28ffff
commit
c75895d711
1 changed files with 4 additions and 1 deletions
|
@ -228,7 +228,10 @@ class CoverManager {
|
|||
async saveEmbeddedCoverArt(libraryItem) {
|
||||
var audioFileWithCover = null
|
||||
if (libraryItem.mediaType === 'book') audioFileWithCover = libraryItem.media.audioFiles.find(af => af.embeddedCoverArt)
|
||||
else audioFileWithCover = libraryItem.media.episodes.find(ep => ep.audioFile.embeddedCoverArt)
|
||||
else {
|
||||
var episodeWithCover = libraryItem.media.episodes.find(ep => ep.audioFile.embeddedCoverArt)
|
||||
if (episodeWithCover) audioFileWithCover = episodeWithCover.audioFile
|
||||
}
|
||||
if (!audioFileWithCover) return false
|
||||
|
||||
var coverDirPath = this.getCoverDirectory(libraryItem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue