mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-01 00:18:14 +01:00
Fix:Set tone path for debian tone usage #1643
This commit is contained in:
parent
77cc0934be
commit
c1b2aaec9f
@ -221,7 +221,6 @@ class MediaFileScanner {
|
|||||||
*/
|
*/
|
||||||
async scanMediaFiles(mediaLibraryFiles, libraryItem, libraryScan = null) {
|
async scanMediaFiles(mediaLibraryFiles, libraryItem, libraryScan = null) {
|
||||||
const preferAudioMetadata = libraryScan ? !!libraryScan.preferAudioMetadata : !!global.ServerSettings.scannerPreferAudioMetadata
|
const preferAudioMetadata = libraryScan ? !!libraryScan.preferAudioMetadata : !!global.ServerSettings.scannerPreferAudioMetadata
|
||||||
const preferOverdriveMediaMarker = !!global.ServerSettings.scannerPreferOverdriveMediaMarker
|
|
||||||
|
|
||||||
let hasUpdated = false
|
let hasUpdated = false
|
||||||
|
|
||||||
|
@ -73,6 +73,10 @@ module.exports.writeToneMetadataJsonFile = (libraryItem, chapters, filePath, tra
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports.tagAudioFile = (filePath, payload) => {
|
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 tone.tag(filePath, payload).then((data) => {
|
||||||
return true
|
return true
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user