mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Fix:Podcast episode cron not adding/removing library items correctly #2277
This commit is contained in:
parent
20880a6bf6
commit
5220361151
@ -127,8 +127,7 @@ class CronManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async executePodcastCron(expression, libraryItemIds) {
|
async executePodcastCron(expression) {
|
||||||
Logger.debug(`[CronManager] Start executing podcast cron ${expression} for ${libraryItemIds.length} item(s)`)
|
|
||||||
const podcastCron = this.podcastCrons.find(cron => cron.expression === expression)
|
const podcastCron = this.podcastCrons.find(cron => cron.expression === expression)
|
||||||
if (!podcastCron) {
|
if (!podcastCron) {
|
||||||
Logger.error(`[CronManager] Podcast cron not found for expression ${expression}`)
|
Logger.error(`[CronManager] Podcast cron not found for expression ${expression}`)
|
||||||
@ -136,6 +135,9 @@ class CronManager {
|
|||||||
}
|
}
|
||||||
this.podcastCronExpressionsExecuting.push(expression)
|
this.podcastCronExpressionsExecuting.push(expression)
|
||||||
|
|
||||||
|
const libraryItemIds = podcastCron.libraryItemIds
|
||||||
|
Logger.debug(`[CronManager] Start executing podcast cron ${expression} for ${libraryItemIds.length} item(s)`)
|
||||||
|
|
||||||
// Get podcast library items to check
|
// Get podcast library items to check
|
||||||
const libraryItems = []
|
const libraryItems = []
|
||||||
for (const libraryItemId of libraryItemIds) {
|
for (const libraryItemId of libraryItemIds) {
|
||||||
|
Loading…
Reference in New Issue
Block a user