mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-02 13:14:34 -04:00
Fix:Catch exception when podcast episode download request fails #1759
This commit is contained in:
parent
b52e240025
commit
0678c26627
@ -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…
x
Reference in New Issue
Block a user