Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
Adding gif support (#1225)
Robbie Davis70196e6e4cc2
diff --git a/API.Tests/Parser/ParserTest.cs b/API.Tests/Parser/ParserTest.csindex ff1b4dc71..662e4c462 100644--- a/API.Tests/Parser/ParserTest.cs+++ b/API.Tests/Parser/ParserTest.cs@@ -179,6 +179,7 @@ namespace API.Tests.Parser[InlineData(".test.jpg", false)][InlineData("!test.jpg", true)][InlineData("test.webp", true)]+ [InlineData("test.gif", true)]public void IsImageTest(string filename, bool expected){Assert.Equal(expected, IsImage(filename));diff --git a/API.Tests/Services/Test Data/ArchiveService/Archives/macos_native.zip b/API.Tests/Services/Test Data/ArchiveService/Archives/macos_native.zipindex a84f32b35..c47021fd2 100644Binary files a/API.Tests/Services/Test Data/ArchiveService/Archives/macos_native.zip and b/API.Tests/Services/Test Data/ArchiveService/Archives/macos_native.zip differdiff --git a/API.Tests/Services/Test Data/ArchiveService/CoverImages/macos_native.zip b/API.Tests/Services/Test Data/ArchiveService/CoverImages/macos_native.zipindex a84f32b35..c47021fd2 100644Binary files a/API.Tests/Services/Test Data/ArchiveService/CoverImages/macos_native.zip and b/API.Tests/Services/Test Data/ArchiveService/CoverImages/macos_native.zip differdiff --git a/API/Parser/Parser.cs b/API/Parser/Parser.csindex bc4fb2f8a..8d2dcf817 100644--- a/API/Parser/Parser.cs+++ b/API/Parser/Parser.cs@@ -12,7 +12,7 @@ namespace API.Parserpublic const string DefaultVolume = "0";private static readonly TimeSpan RegexTimeout = TimeSpan.FromMilliseconds(500);- public const string ImageFileExtensions = @"^(\.png|\.jpeg|\.jpg|\.webp)";+ public const string ImageFileExtensions = @"^(\.png|\.jpeg|\.jpg|\.webp|\.gif)";public const string ArchiveFileExtensions = @"\.cbz|\.zip|\.rar|\.cbr|\.tar.gz|\.7zip|\.7z|\.cb7|\.cbt";public const string BookFileExtensions = @"\.epub|\.pdf";public const string MacOsMetadataFileStartsWith = @"._";diff --git a/UI/Web/src/app/events-widget/events-widget.component.scss b/UI/Web/src/app/events-widget/events-widget.component.scssindex 6a2070e78..7f9534400 100644--- a/UI/Web/src/app/events-widget/events-widget.component.scss+++ b/UI/Web/src/app/events-widget/events-widget.component.scss@@ -21,6 +21,8 @@max-width: 250px;padding: 0px;box-shadow: 0px 0px 12px rgb(0 0 0 / 75%);+ max-height: calc(100vh - 60px);+ overflow-y: auto;}.popover {