From 2e5a9b8dd4b14b768f578ecf2a233f07283a8b2a Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 25 Jul 2021 21:40:10 +0100 Subject: [PATCH] Fixed: Don't try to audio tag ebook files --- src/NzbDrone.Core/MediaFiles/AudioTagService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MediaFiles/AudioTagService.cs b/src/NzbDrone.Core/MediaFiles/AudioTagService.cs index 84fbf1d93..5317f54ed 100644 --- a/src/NzbDrone.Core/MediaFiles/AudioTagService.cs +++ b/src/NzbDrone.Core/MediaFiles/AudioTagService.cs @@ -205,7 +205,7 @@ namespace NzbDrone.Core.MediaFiles _logger.Debug($"Syncing audio tags for {bookFiles.Count} files"); - foreach (var file in bookFiles) + foreach (var file in bookFiles.Where(x => MediaFileExtensions.AudioExtensions.Contains(Path.GetExtension(x.Path)))) { // populate tracks (which should also have release/book/author set) because // not all of the updates will have been committed to the database yet