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

@ -106,7 +106,7 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => {
headers: {
'User-Agent': 'audiobookshelf (+https://audiobookshelf.org)'
},
timeout: 30000
timeout: global.PodcastDownloadTimeout
}).catch((error) => {
Logger.error(`[ffmpegHelpers] Failed to download podcast episode with url "${podcastEpisodeDownload.url}"`, error)
return null