mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 12:41:29 +02:00
catch timeout
This commit is contained in:
parent
9bb4dc3ab0
commit
357176b301
@ -390,7 +390,11 @@ class PodcastManager {
|
|||||||
// The added second is to make sure that axios can fail first and only falls back later
|
// The added second is to make sure that axios can fail first and only falls back later
|
||||||
setTimeout(() => reject(new Error('Timeout. getPodcastFeed seemed to timeout but not triggering the timeout.')), global.PodcastDownloadTimeout + 1000)
|
setTimeout(() => reject(new Error('Timeout. getPodcastFeed seemed to timeout but not triggering the timeout.')), global.PodcastDownloadTimeout + 1000)
|
||||||
)
|
)
|
||||||
])
|
]).catch((error) => {
|
||||||
|
Logger.error(`[PodcastManager] checkPodcastForNewEpisodes failed to fetch feed for ${podcastLibraryItem.media.title} (ID: ${podcastLibraryItem.id}):`, error)
|
||||||
|
return null
|
||||||
|
})
|
||||||
|
|
||||||
if (!feed?.episodes) {
|
if (!feed?.episodes) {
|
||||||
Logger.error(`[PodcastManager] checkPodcastForNewEpisodes invalid feed payload for ${podcastLibraryItem.media.title} (ID: ${podcastLibraryItem.id})`, feed)
|
Logger.error(`[PodcastManager] checkPodcastForNewEpisodes invalid feed payload for ${podcastLibraryItem.media.title} (ID: ${podcastLibraryItem.id})`, feed)
|
||||||
return null
|
return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user