@@ -326,7 +325,7 @@ export default {
this.checkChapters()
},
toggleRemoveBranding() {
- this.removeBranding = !this.removeBranding;
+ this.removeBranding = !this.removeBranding
},
shiftChapterTimes() {
if (!this.shiftAmount || isNaN(this.shiftAmount) || this.newChapters.length <= 1) {
@@ -337,12 +336,12 @@ export default {
const lastChapter = this.newChapters[this.newChapters.length - 1]
if (lastChapter.start + amount > this.mediaDurationRounded) {
- this.$toast.error(this.$strings.ToastInvalidShiftAmountLast)
+ this.$toast.error(this.$strings.ToastChaptersInvalidShiftAmountLast)
return
}
if (this.newChapters[1].start + amount <= 0) {
- this.$toast.error(this.$strings.ToastInvalidShiftAmountStart)
+ this.$toast.error(this.$strings.ToastChaptersInvalidShiftAmountStart)
return
}
@@ -610,10 +609,10 @@ export default {
data.chapters.pop()
}
+ return data
} catch {
return data
}
- return data
},
resetChapters() {
const payload = {
diff --git a/client/strings/en-us.json b/client/strings/en-us.json
index 8ef7f24c..4c07609e 100644
--- a/client/strings/en-us.json
+++ b/client/strings/en-us.json
@@ -973,6 +973,8 @@
"ToastCachePurgeFailed": "Failed to purge cache",
"ToastCachePurgeSuccess": "Cache purged successfully",
"ToastChaptersHaveErrors": "Chapters have errors",
+ "ToastChaptersInvalidShiftAmountLast": "Invalid shift amount. The last chapter start time would extend beyond the duration of this audiobook.",
+ "ToastChaptersInvalidShiftAmountStart": "Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter.",
"ToastChaptersMustHaveTitles": "Chapters must have titles",
"ToastChaptersRemoved": "Chapters removed",
"ToastChaptersUpdated": "Chapters updated",
@@ -1000,8 +1002,6 @@
"ToastFailedToUpdate": "Failed to update",
"ToastInvalidImageUrl": "Invalid image URL",
"ToastInvalidMaxEpisodesToDownload": "Invalid max episodes to download",
- "ToastInvalidShiftAmountLast": "Invalid shift amount. The last chapter start time would extend beyond the duration of this audiobook.",
- "ToastInvalidShiftAmountStart": "Invalid shift amount. The first chapter would have zero or negative length and would be overwritten by the second chapter. Increase the start duration of second chapter.",
"ToastInvalidUrl": "Invalid URL",
"ToastItemCoverUpdateSuccess": "Item cover updated",
"ToastItemDeletedFailed": "Failed to delete item",