Adding gif support (#1225)

* Adding gif to accepted image extension and unit test

* Revert "Adding gif to accepted image extension and unit test"

This reverts commit d0df823906.

* Adding gif support and unit test

* unit test and event widget

- updating unit test archives to temive unneeded gifs, causing failures
- adding overflow to event widget
This commit is contained in:
Robbie Davis 2022-04-20 18:05:42 -04:00 committed by GitHub
parent 28e5c70811
commit 70196e6e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 1 deletions

View file

@ -12,7 +12,7 @@ namespace API.Parser
public 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 = @"._";