mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 02:41:35 +00:00
Compare commits
No commits in common. "5dc6d613bd4f0dbae6e8ea486c6e3e644d271041" and "c377b57601f82f76d677b09e6bbabda732c18861" have entirely different histories.
5dc6d613bd
...
c377b57601
5 changed files with 7 additions and 25 deletions
|
|
@ -143,18 +143,10 @@ export default {
|
||||||
localStorage.setItem('embedMetadataCodec', val)
|
localStorage.setItem('embedMetadataCodec', val)
|
||||||
},
|
},
|
||||||
getEncodingOptions() {
|
getEncodingOptions() {
|
||||||
if (this.showAdvancedView) {
|
return {
|
||||||
return {
|
codec: this.selectedCodec || 'aac',
|
||||||
codec: this.customCodec || this.selectedCodec || 'aac',
|
bitrate: this.selectedBitrate || '128k',
|
||||||
bitrate: this.customBitrate || this.selectedBitrate || '128k',
|
channels: this.selectedChannels || 2
|
||||||
channels: this.customChannels || this.selectedChannels || 2
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
codec: this.selectedCodec || 'aac',
|
|
||||||
bitrate: this.selectedBitrate || '128k',
|
|
||||||
channels: this.selectedChannels || 2
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setPreset() {
|
setPreset() {
|
||||||
|
|
|
||||||
|
|
@ -356,8 +356,6 @@ export default {
|
||||||
|
|
||||||
const encodeOptions = this.$refs.encoderOptionsCard.getEncodingOptions()
|
const encodeOptions = this.$refs.encoderOptionsCard.getEncodingOptions()
|
||||||
|
|
||||||
this.encodingOptions = encodeOptions
|
|
||||||
|
|
||||||
const queryParams = new URLSearchParams(encodeOptions)
|
const queryParams = new URLSearchParams(encodeOptions)
|
||||||
|
|
||||||
this.processing = true
|
this.processing = true
|
||||||
|
|
|
||||||
|
|
@ -203,15 +203,7 @@ class AbMergeManager {
|
||||||
// Move library item tracks to cache
|
// Move library item tracks to cache
|
||||||
for (const [index, trackPath] of task.data.originalTrackPaths.entries()) {
|
for (const [index, trackPath] of task.data.originalTrackPaths.entries()) {
|
||||||
const trackFilename = Path.basename(trackPath)
|
const trackFilename = Path.basename(trackPath)
|
||||||
let moveToPath = Path.join(task.data.itemCachePath, trackFilename)
|
const 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)
|
|
||||||
}
|
|
||||||
|
|
||||||
Logger.debug(`[AbMergeManager] Backing up original track "${trackPath}" to ${moveToPath}`)
|
Logger.debug(`[AbMergeManager] Backing up original track "${trackPath}" to ${moveToPath}`)
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
// copy the first track to the cache directory
|
// copy the first track to the cache directory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue