From 03c4ade25ecfb713cadc085844497fa7e1f36338 Mon Sep 17 00:00:00 2001 From: lay295 Date: Thu, 3 Sep 2020 20:53:35 -0400 Subject: [PATCH] For some reason FrameCount is actually zero for single frame images... interesting --- TwitchDownloaderCore/TwitchHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index 637b821d..6a4a893b 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -89,7 +89,7 @@ public static List GetThirdPartyEmotes(int streamerId, string c { MemoryStream ms = new MemoryStream(emoteData.data); SKCodec codec = SKCodec.Create(ms); - ThirdPartyEmote newEmote = new ThirdPartyEmote(new List() { SKBitmap.Decode(emoteData.data) }, codec, emoteData.name, codec.FrameCount == 1 ? "png" : "gif", "", emoteData.imageScale, emoteData.data); + ThirdPartyEmote newEmote = new ThirdPartyEmote(new List() { SKBitmap.Decode(emoteData.data) }, codec, emoteData.name, codec.FrameCount == 0 ? "png" : "gif", "", emoteData.imageScale, emoteData.data); returnList.Add(newEmote); } catch { }