From fea34add4b3a689de0c0281bc640067a9f61a19f Mon Sep 17 00:00:00 2001 From: ta264 Date: Tue, 6 Apr 2021 21:28:39 +0100 Subject: [PATCH] New: Support kepub (as epub) --- src/NzbDrone.Core/MediaFiles/EbookTagService.cs | 1 + src/NzbDrone.Core/MediaFiles/MediaFileExtensions.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/EbookTagService.cs b/src/NzbDrone.Core/MediaFiles/EbookTagService.cs index 3c82760ed..6e404a2d7 100644 --- a/src/NzbDrone.Core/MediaFiles/EbookTagService.cs +++ b/src/NzbDrone.Core/MediaFiles/EbookTagService.cs @@ -68,6 +68,7 @@ namespace NzbDrone.Core.MediaFiles case ".pdf": return ReadPdf(file.FullName); case ".epub": + case ".kepub": return ReadEpub(file.FullName); case ".azw3": case ".mobi": diff --git a/src/NzbDrone.Core/MediaFiles/MediaFileExtensions.cs b/src/NzbDrone.Core/MediaFiles/MediaFileExtensions.cs index c7064a4fe..0cfa7bd28 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaFileExtensions.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaFileExtensions.cs @@ -15,6 +15,7 @@ namespace NzbDrone.Core.MediaFiles _textExtensions = new Dictionary(StringComparer.OrdinalIgnoreCase) { { ".epub", Quality.EPUB }, + { ".kepub", Quality.EPUB }, { ".mobi", Quality.MOBI }, { ".azw3", Quality.AZW3 }, { ".pdf", Quality.PDF },