diff --git a/server/controllers/PodcastController.js b/server/controllers/PodcastController.js index 0e1ebcd3..4f6df6af 100644 --- a/server/controllers/PodcastController.js +++ b/server/controllers/PodcastController.js @@ -91,7 +91,7 @@ class PodcastController { res.json(libraryItem.toJSONExpanded()) - if (payload.episodesToDownload && payload.episodesToDownload.length) { + if (payload.episodesToDownload?.length) { Logger.info(`[PodcastController] Podcast created now starting ${payload.episodesToDownload.length} episode downloads`) this.podcastManager.downloadPodcastEpisodes(libraryItem, payload.episodesToDownload) } diff --git a/server/objects/settings/ServerSettings.js b/server/objects/settings/ServerSettings.js index 8daca57a..418b8054 100644 --- a/server/objects/settings/ServerSettings.js +++ b/server/objects/settings/ServerSettings.js @@ -147,6 +147,7 @@ class ServerSettings { loggerScannerLogsToKeep: this.loggerScannerLogsToKeep, homeBookshelfView: this.homeBookshelfView, bookshelfView: this.bookshelfView, + podcastEpisodeSchedule: this.podcastEpisodeSchedule, sortingIgnorePrefix: this.sortingIgnorePrefix, sortingPrefixes: [...this.sortingPrefixes], chromecastEnabled: this.chromecastEnabled,