diff --git a/client/components/widgets/EncoderOptionsCard.vue b/client/components/widgets/EncoderOptionsCard.vue index 977d766be..005563b44 100644 --- a/client/components/widgets/EncoderOptionsCard.vue +++ b/client/components/widgets/EncoderOptionsCard.vue @@ -143,18 +143,10 @@ export default { localStorage.setItem('embedMetadataCodec', val) }, getEncodingOptions() { - if (this.showAdvancedView) { - return { - codec: this.customCodec || this.selectedCodec || 'aac', - bitrate: this.customBitrate || this.selectedBitrate || '128k', - channels: this.customChannels || this.selectedChannels || 2 - } - } else { - return { - codec: this.selectedCodec || 'aac', - bitrate: this.selectedBitrate || '128k', - channels: this.selectedChannels || 2 - } + return { + codec: this.selectedCodec || 'aac', + bitrate: this.selectedBitrate || '128k', + channels: this.selectedChannels || 2 } }, setPreset() { diff --git a/client/components/widgets/LoadingSpinner.vue b/client/components/widgets/LoadingSpinner.vue index 8f3de84af..a9c4ef47b 100644 --- a/client/components/widgets/LoadingSpinner.vue +++ b/client/components/widgets/LoadingSpinner.vue @@ -248,4 +248,4 @@ export default { transform: scale(0); } } - + \ No newline at end of file diff --git a/client/components/widgets/SeriesInputWidget.vue b/client/components/widgets/SeriesInputWidget.vue index 3dab0605a..d6c8cf9f9 100644 --- a/client/components/widgets/SeriesInputWidget.vue +++ b/client/components/widgets/SeriesInputWidget.vue @@ -109,4 +109,4 @@ export default { } } } - + \ No newline at end of file diff --git a/client/pages/audiobook/_id/manage.vue b/client/pages/audiobook/_id/manage.vue index 377349345..7afe12a9c 100644 --- a/client/pages/audiobook/_id/manage.vue +++ b/client/pages/audiobook/_id/manage.vue @@ -356,8 +356,6 @@ export default { const encodeOptions = this.$refs.encoderOptionsCard.getEncodingOptions() - this.encodingOptions = encodeOptions - const queryParams = new URLSearchParams(encodeOptions) this.processing = true diff --git a/server/managers/AbMergeManager.js b/server/managers/AbMergeManager.js index 3611d294f..f6a561607 100644 --- a/server/managers/AbMergeManager.js +++ b/server/managers/AbMergeManager.js @@ -203,15 +203,7 @@ class AbMergeManager { // Move library item tracks to cache for (const [index, trackPath] of task.data.originalTrackPaths.entries()) { const trackFilename = Path.basename(trackPath) - let moveToPath = Path.join(task.data.itemCachePath, trackFilename) - - // If the track is the same as the temp file, we need to rename it to avoid overwriting it - if (task.data.tempFilepath === moveToPath) { - const trackExtname = Path.extname(task.data.tempFilepath) - const newTrackFilename = Path.basename(task.data.tempFilepath, trackExtname) + '.backup' + trackExtname - moveToPath = Path.join(task.data.itemCachePath, newTrackFilename) - } - + const moveToPath = Path.join(task.data.itemCachePath, trackFilename) Logger.debug(`[AbMergeManager] Backing up original track "${trackPath}" to ${moveToPath}`) if (index === 0) { // copy the first track to the cache directory