mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 17:34:58 +02:00
Fix:Catch exception when podcast episode download request fails #1759
This commit is contained in:
parent
b52e240025
commit
0678c26627
1 changed files with 5 additions and 0 deletions
|
@ -95,7 +95,12 @@ module.exports.downloadPodcastEpisode = (podcastEpisodeDownload) => {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
responseType: 'stream',
|
responseType: 'stream',
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
|
}).catch((error) => {
|
||||||
|
Logger.error(`[ffmpegHelpers] Failed to download podcast episode with url "${podcastEpisodeDownload.url}"`, error)
|
||||||
|
return null
|
||||||
})
|
})
|
||||||
|
if (!response) return resolve(false)
|
||||||
|
|
||||||
|
|
||||||
const ffmpeg = Ffmpeg(response.data)
|
const ffmpeg = Ffmpeg(response.data)
|
||||||
ffmpeg.outputOptions(
|
ffmpeg.outputOptions(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue