Fix:Set tone path for debian tone usage #1643

This commit is contained in:
advplyr 2023-04-11 16:55:22 -05:00
parent 77cc0934be
commit c1b2aaec9f
2 changed files with 4 additions and 1 deletions

View File

@ -221,7 +221,6 @@ class MediaFileScanner {
*/
async scanMediaFiles(mediaLibraryFiles, libraryItem, libraryScan = null) {
const preferAudioMetadata = libraryScan ? !!libraryScan.preferAudioMetadata : !!global.ServerSettings.scannerPreferAudioMetadata
const preferOverdriveMediaMarker = !!global.ServerSettings.scannerPreferOverdriveMediaMarker
let hasUpdated = false

View File

@ -73,6 +73,10 @@ module.exports.writeToneMetadataJsonFile = (libraryItem, chapters, filePath, tra
}
module.exports.tagAudioFile = (filePath, payload) => {
if (process.env.TONE_PATH) {
tone.TONE_PATH = process.env.TONE_PATH
}
return tone.tag(filePath, payload).then((data) => {
return true
}).catch((error) => {