From cd711b021b472a01aede9a35143366bf64e276be Mon Sep 17 00:00:00 2001 From: Vito0912 <86927734+Vito0912@users.noreply.github.com> Date: Sun, 20 Apr 2025 17:17:28 +0200 Subject: [PATCH] implement Merge files without encoding --- client/pages/audiobook/_id/manage.vue | 18 +++++++++++++----- client/strings/en-us.json | 1 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/client/pages/audiobook/_id/manage.vue b/client/pages/audiobook/_id/manage.vue index 3d9ac051..4e5ad10a 100644 --- a/client/pages/audiobook/_id/manage.vue +++ b/client/pages/audiobook/_id/manage.vue @@ -77,9 +77,14 @@
- +
+ + +
@@ -92,7 +97,7 @@
-
+
@@ -216,6 +221,7 @@ export default { isCancelingEncode: false, showEncodeOptions: false, shouldBackupAudioFiles: true, + mergeWithoutEncoding: false, encodingOptions: { bitrate: '128k', channels: '2', @@ -352,7 +358,7 @@ export default { if (this.$refs.codecInput) this.$refs.codecInput.blur() let queryStr = '' - if (this.showEncodeOptions) { + if (this.showEncodeOptions && !this.mergeWithoutEncoding) { const options = [] if (this.encodingOptions.bitrate) options.push(`bitrate=${this.encodingOptions.bitrate}`) if (this.encodingOptions.channels) options.push(`channels=${this.encodingOptions.channels}`) @@ -360,6 +366,8 @@ export default { if (options.length) { queryStr = `?${options.join('&')}` } + } else if (this.mergeWithoutEncoding) { + queryStr = '?codec=copy' } this.processing = true this.$axios diff --git a/client/strings/en-us.json b/client/strings/en-us.json index ef43d4f5..511679ae 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -432,6 +432,7 @@ "LabelMaxEpisodesToKeepHelp": "Value of 0 sets no max limit. After a new episode is auto-downloaded this will delete the oldest episode if you have more than X episodes. This will only delete 1 episode per new download.", "LabelMediaPlayer": "Media Player", "LabelMediaType": "Media Type", + "LabelMergeWithoutEncoding": "Merge files without encoding", "LabelMetaTag": "Meta Tag", "LabelMetaTags": "Meta Tags", "LabelMetadataOrderOfPrecedenceDescription": "Higher priority metadata sources will override lower priority metadata sources",