mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-10 19:31:39 +00:00
Update: "failed to get" strings
This commit is contained in:
parent
55b2472978
commit
155e8ce878
8 changed files with 16 additions and 10 deletions
|
|
@ -162,7 +162,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('Failed to get filesystem paths', error)
|
console.error('Failed to get filesystem paths', error)
|
||||||
this.$toast.error('Failed to get filesystem paths')
|
this.$toast.error(this.$strings.ToastGetFilesystemPathsFailed)
|
||||||
return []
|
return []
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
|
|
@ -560,7 +560,7 @@ export default {
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.findingChapters = false
|
this.findingChapters = false
|
||||||
console.error('Failed to get chapter data', error)
|
console.error('Failed to get chapter data', error)
|
||||||
this.$toast.error('Failed to find chapters')
|
this.$toast.error(this.$strings.ToastGetChaptersFailed)
|
||||||
this.showFindChaptersModal = false
|
this.showFindChaptersModal = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -358,12 +358,12 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!libraryItem) {
|
if (!libraryItem) {
|
||||||
this.$toast.error('Failed to get library item')
|
this.$toast.error(this.$strings.ToastGetLibraryItemFailed)
|
||||||
this.processingGoToTimestamp = false
|
this.processingGoToTimestamp = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (session.episodeId && !libraryItem.media.episodes.some((ep) => ep.id === session.episodeId)) {
|
if (session.episodeId && !libraryItem.media.episodes.some((ep) => ep.id === session.episodeId)) {
|
||||||
this.$toast.error('Failed to get podcast episode')
|
this.$toast.error(this.$strings.ToastGetPodcastEpisodeFailed)
|
||||||
this.processingGoToTimestamp = false
|
this.processingGoToTimestamp = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,12 +127,12 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!libraryItem) {
|
if (!libraryItem) {
|
||||||
this.$toast.error('Failed to get library item')
|
this.$toast.error(this.$strings.ToastGetLibraryItemFailed)
|
||||||
this.processingGoToTimestamp = false
|
this.processingGoToTimestamp = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (session.episodeId && !libraryItem.media.episodes.some((ep) => ep.id === session.episodeId)) {
|
if (session.episodeId && !libraryItem.media.episodes.some((ep) => ep.id === session.episodeId)) {
|
||||||
this.$toast.error('Failed to get podcast episode')
|
this.$toast.error(this.$strings.ToastGetPodcastEpisodeFailed)
|
||||||
this.processingGoToTimestamp = false
|
this.processingGoToTimestamp = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ export default {
|
||||||
this.processing = true
|
this.processing = true
|
||||||
const queuePayload = await this.$axios.$get(`/api/libraries/${this.libraryId}/episode-downloads`).catch((error) => {
|
const queuePayload = await this.$axios.$get(`/api/libraries/${this.libraryId}/episode-downloads`).catch((error) => {
|
||||||
console.error('Failed to get download queue', error)
|
console.error('Failed to get download queue', error)
|
||||||
this.$toast.error('Failed to get download queue')
|
this.$toast.error(this.$strings.ToastGetDownloadQueueFailed)
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ export default {
|
||||||
this.processing = true
|
this.processing = true
|
||||||
const episodePayload = await this.$axios.$get(`/api/libraries/${this.libraryId}/recent-episodes?limit=25&page=${page}`).catch((error) => {
|
const episodePayload = await this.$axios.$get(`/api/libraries/${this.libraryId}/recent-episodes?limit=25&page=${page}`).catch((error) => {
|
||||||
console.error('Failed to get recent episodes', error)
|
console.error('Failed to get recent episodes', error)
|
||||||
this.$toast.error('Failed to get recent episodes')
|
this.$toast.error(this.$strings.ToastGetRecentEpisodesFailed)
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ export default {
|
||||||
this.processing = true
|
this.processing = true
|
||||||
var payload = await this.$axios.$post(`/api/podcasts/feed`, { rssFeed }).catch((error) => {
|
var payload = await this.$axios.$post(`/api/podcasts/feed`, { rssFeed }).catch((error) => {
|
||||||
console.error('Failed to get feed', error)
|
console.error('Failed to get feed', error)
|
||||||
this.$toast.error('Failed to get podcast feed')
|
this.$toast.error(this.$strings.ToastPodcastGetFeedFailed)
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
@ -197,7 +197,7 @@ export default {
|
||||||
this.processing = true
|
this.processing = true
|
||||||
const payload = await this.$axios.$post(`/api/podcasts/feed`, { rssFeed: podcast.feedUrl }).catch((error) => {
|
const payload = await this.$axios.$post(`/api/podcasts/feed`, { rssFeed: podcast.feedUrl }).catch((error) => {
|
||||||
console.error('Failed to get feed', error)
|
console.error('Failed to get feed', error)
|
||||||
this.$toast.error('Failed to get podcast feed')
|
this.$toast.error(this.$strings.ToastPodcastGetFeedFailed)
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
this.processing = false
|
this.processing = false
|
||||||
|
|
|
||||||
|
|
@ -869,6 +869,12 @@
|
||||||
"ToastFailedToUpdateAccount": "Failed to update account",
|
"ToastFailedToUpdateAccount": "Failed to update account",
|
||||||
"ToastFailedToUpdateUser": "Failed to update user",
|
"ToastFailedToUpdateUser": "Failed to update user",
|
||||||
"ToastFfprobeFailed": "FFprobe failed",
|
"ToastFfprobeFailed": "FFprobe failed",
|
||||||
|
"ToastGetChaptersFailed": "Failed to get chapters",
|
||||||
|
"ToastGetDownloadQueueFailed": "Failed to get download queue",
|
||||||
|
"ToastGetFilesystemPathsFailed": "Failed to get filesystem paths",
|
||||||
|
"ToastGetLibraryItemFailed": "Failed to get library item",
|
||||||
|
"ToastGetPodcastEpisodeFailed": "Failed to get podcast episode",
|
||||||
|
"ToastGetRecentEpisodesFailed": "Failed to get recent episodes",
|
||||||
"ToastInvalidImageUrl": "Invalid image URL",
|
"ToastInvalidImageUrl": "Invalid image URL",
|
||||||
"ToastInvalidUrl": "Invalid URL",
|
"ToastInvalidUrl": "Invalid URL",
|
||||||
"ToastItemCoverUpdateFailed": "Failed to update item cover",
|
"ToastItemCoverUpdateFailed": "Failed to update item cover",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue