Adds a configuration for podcast feed and episode download timeout

This commit is contained in:
sbyrx 2025-01-01 16:01:26 +00:00
parent 727310ab75
commit 0d8d0a650b
3 changed files with 8 additions and 2 deletions

View file

@ -65,6 +65,12 @@ class Server {
}
}
if (process.env.PODCAST_DOWNLOAD_TIMEOUT) {
global.PodcastDownloadTimeout = process.env.PODCAST_DOWNLOAD_TIMEOUT
} else {
global.PodcastDownloadTimeout = 30000
}
if (!fs.pathExistsSync(global.ConfigPath)) {
fs.mkdirSync(global.ConfigPath)
}