diff --git a/TwitchDownloaderWPF/PageChatRender.xaml.cs b/TwitchDownloaderWPF/PageChatRender.xaml.cs index 56f7fb22..779f6980 100644 --- a/TwitchDownloaderWPF/PageChatRender.xaml.cs +++ b/TwitchDownloaderWPF/PageChatRender.xaml.cs @@ -422,7 +422,7 @@ private SKBitmap DrawMessage(SKBitmap sectionImage, List imageList, Re else { //Is a first party emote - int emoteId = Int32.Parse(fragment.emoticon.emoticon_id); + int emoteId = Int32.Parse(new String(fragment.emoticon.emoticon_id.Where(Char.IsDigit).ToArray())); if (chatEmotes.ContainsKey(emoteId)) { SKBitmap emoteImage = chatEmotes[emoteId]; @@ -840,7 +840,7 @@ private void GetEmotes(Dictionary chatEmotes, List comme { if (fragment.emoticon != null) { - int id = Int32.Parse(fragment.emoticon.emoticon_id); + int id = Int32.Parse(new String(fragment.emoticon.emoticon_id.Where(Char.IsDigit).ToArray())); if (!alreadyAdded.Contains(id) && !failedEmotes.Contains(id)) { try