Podcast episode player fixes, episode table ui updates

This commit is contained in:
advplyr 2022-03-26 18:23:33 -05:00
parent 0e665e2091
commit 12027b9a76
13 changed files with 47 additions and 22 deletions

View file

@ -84,9 +84,11 @@ class PodcastManager {
Logger.error(`[PodcastManager] Podcast Episode finished but library item was not found ${this.currentDownload.libraryItem.id}`)
return false
}
var podcastEpisode = this.currentDownload.podcastEpisode
podcastEpisode.audioFile = audioFile
libraryItem.media.addPodcastEpisode(podcastEpisode)
libraryItem.libraryFiles.push(libraryFile)
libraryItem.updatedAt = Date.now()
await this.db.updateLibraryItem(libraryItem)
this.emitter('item_updated', libraryItem.toJSONExpanded())