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

This commit is contained in:
Keagan Hilliard committed 2022-11-03 10:09:49 -06:00
1 parent d57effe97c
commit 586c8a550a
2 files changed
+2 -4

No files matched your search

+1 -1
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