mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-30 12:35:00 +02:00
Fix:Podcast schedule max new episodes to download setting to 0 and fix input blurs #2680
This commit is contained in:
parent
7a4f4b1586
commit
38f12f4795
3 changed files with 18 additions and 5 deletions
|
@ -42,7 +42,13 @@ class Podcast {
|
|||
this.autoDownloadSchedule = podcast.autoDownloadSchedule || '0 * * * *' // Added in 2.1.3 so default to hourly
|
||||
this.lastEpisodeCheck = podcast.lastEpisodeCheck || 0
|
||||
this.maxEpisodesToKeep = podcast.maxEpisodesToKeep || 0
|
||||
this.maxNewEpisodesToDownload = podcast.maxNewEpisodesToDownload || 3
|
||||
|
||||
// Default is 3 but 0 is allowed
|
||||
if (typeof podcast.maxNewEpisodesToDownload !== 'number') {
|
||||
this.maxNewEpisodesToDownload = 3
|
||||
} else {
|
||||
this.maxNewEpisodesToDownload = podcast.maxNewEpisodesToDownload
|
||||
}
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue