Removed a noisy log and limit chapter embedding to items with only 1 audiofile

This commit is contained in:
Keagan Hilliard 2022-11-03 10:09:49 -06:00
parent d57effe97c
commit 586c8a550a
2 changed files with 2 additions and 4 deletions

View file

@ -49,7 +49,7 @@ class AudioMetadataMangaer {
try {
toneJsonPath = Path.join(itemCacheDir, 'metadata.json')
await toneHelpers.writeToneMetadataJsonFile(libraryItem, toneJsonPath)
await toneHelpers.writeToneMetadataJsonFile(libraryItem, audioFiles.length == 1 && libraryItem.media.chapters, toneJsonPath)
} catch (error) {
Logger.error(`[AudioMetadataManager] Write metadata.json failed`, error)
toneJsonPath = null