mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-27 14:25:34 +02:00
Removed a noisy log and limit chapter embedding to items with only 1 audiofile
This commit is contained in:
@@ -72,10 +72,9 @@ module.exports.getToneMetadataObject = (libraryItem, chaptersFile) => {
|
||||
return metadataObject
|
||||
}
|
||||
|
||||
module.exports.writeToneMetadataJsonFile = (libraryItem, filePath) => {
|
||||
module.exports.writeToneMetadataJsonFile = (libraryItem, chapters, filePath) => {
|
||||
const bookMetadata = libraryItem.media.metadata
|
||||
const coverPath = libraryItem.media.coverPath
|
||||
const chapters = libraryItem.media.chapters
|
||||
|
||||
const metadataObject = {
|
||||
'album': bookMetadata.title || '',
|
||||
@@ -139,7 +138,6 @@ module.exports.writeToneMetadataJsonFile = (libraryItem, filePath) => {
|
||||
|
||||
module.exports.tagAudioFile = (filePath, payload) => {
|
||||
return tone.tag(filePath, payload).then((data) => {
|
||||
Logger.info('Tone results: ', data)
|
||||
return true
|
||||
}).catch((error) => {
|
||||
Logger.error(`[toneHelpers] tagAudioFile: Failed for "${filePath}"`, error)
|
||||
|
Reference in New Issue
Block a user