From bb4db21b8775a31ae6a56fab029f1a5816efb5f0 Mon Sep 17 00:00:00 2001 From: Tyrrrz Date: Fri, 23 Jul 2021 00:18:38 +0300 Subject: [PATCH] Add missing formats to the list of supported image and video attachments --- DiscordChatExporter.Core/Discord/Data/Attachment.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DiscordChatExporter.Core/Discord/Data/Attachment.cs b/DiscordChatExporter.Core/Discord/Data/Attachment.cs index 15de93b..8d7c671 100644 --- a/DiscordChatExporter.Core/Discord/Data/Attachment.cs +++ b/DiscordChatExporter.Core/Discord/Data/Attachment.cs @@ -57,13 +57,13 @@ namespace DiscordChatExporter.Core.Discord.Data public partial class Attachment { private static readonly HashSet ImageFileExtensions = new(StringComparer.OrdinalIgnoreCase) - {".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp"}; + { ".jpg", ".jpeg", ".png", ".gif", ".gifv", ".bmp", ".webp" }; private static readonly HashSet VideoFileExtensions = new(StringComparer.OrdinalIgnoreCase) - {".mp4", ".webm"}; + { ".mp4", ".webm", ".mov" }; private static readonly HashSet AudioFileExtensions = new(StringComparer.OrdinalIgnoreCase) - {".mp3", ".wav", ".ogg", ".flac", ".m4a"}; + { ".mp3", ".wav", ".ogg", ".flac", ".m4a" }; public static Attachment Parse(JsonElement json) {