Add episode_download_queue_cleared socket event

This commit is contained in:
mikiher 2024-11-12 07:37:38 +02:00
parent b50d7f0927
commit 8626fa3e00
2 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,7 @@ class PodcastManager {
var itemDownloads = this.getEpisodeDownloadsInQueue(libraryItemId)
Logger.info(`[PodcastManager] Clearing downloads in queue for item "${libraryItemId}" (${itemDownloads.length})`)
this.downloadQueue = this.downloadQueue.filter((d) => d.libraryItemId !== libraryItemId)
SocketAuthority.emitter('episode_download_queue_cleared', libraryItemId)
}
}