From 54491ee90392208b93e5b55f995424f757813766 Mon Sep 17 00:00:00 2001 From: CutSnake <133022640+CutSnake01@users.noreply.github.com> Date: Mon, 26 Jan 2026 04:26:08 +1100 Subject: [PATCH] Fix applying chapters not fully replacing existing chapter list When applying chapters from Audible lookup, if the new chapter list had fewer chapters than the existing one, the old extra chapters were being retained. For example, going from 61 to 36 chapters would result in a hybrid list with 36 updated chapters plus 25 leftover old ones. The bug was in the applyChapterData() function which incorrectly fell back to old chapters when the audible chapter array was exhausted. This fallback should only happen for explicitly locked chapters, not for all remaining old chapters. Fixes #4939 --- client/pages/audiobook/_id/chapters.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index e91a8846d..2a7770f0b 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -753,8 +753,6 @@ export default { } else if (audibleChapters[audibleIdx]) { merged.push({ ...audibleChapters[audibleIdx], id: i }) audibleIdx++ - } else if (this.newChapters[i]) { - merged.push({ ...this.newChapters[i], id: i }) } } this.newChapters = merged