mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 10:51:37 +00:00
Compare commits
5 commits
5dc6d613bd
...
704c6f7bde
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
704c6f7bde | ||
|
|
f01055f6e6 | ||
|
|
759c58d3f7 | ||
|
|
357176b301 | ||
|
|
9bb4dc3ab0 |
2 changed files with 13 additions and 5 deletions
|
|
@ -318,10 +318,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleAttachmentAdd(event) {
|
handleAttachmentAdd(event) {
|
||||||
// Prevent pasting in images from the browser
|
// Prevent pasting in images/any files from the browser
|
||||||
if (!event.attachment.file) {
|
event.attachment.remove()
|
||||||
event.attachment.remove()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
||||||
|
|
@ -384,7 +384,17 @@ class PodcastManager {
|
||||||
Logger.error(`[PodcastManager] checkPodcastForNewEpisodes no feed url for ${podcastLibraryItem.media.title} (ID: ${podcastLibraryItem.id})`)
|
Logger.error(`[PodcastManager] checkPodcastForNewEpisodes no feed url for ${podcastLibraryItem.media.title} (ID: ${podcastLibraryItem.id})`)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const feed = await getPodcastFeed(podcastLibraryItem.media.feedURL)
|
const feed = await Promise.race([
|
||||||
|
getPodcastFeed(podcastLibraryItem.media.feedURL),
|
||||||
|
new Promise((_, reject) =>
|
||||||
|
// 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)
|
||||||
|
)
|
||||||
|
]).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…
Add table
Add a link
Reference in a new issue