Skip to content

Commit

Permalink
Some emote ids have _HF at the end?
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Oct 19, 2019
1 parent 7df63cc commit 225e2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwitchDownloaderWPF/PageChatRender.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private SKBitmap DrawMessage(SKBitmap sectionImage, List<SKBitmap> 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];
Expand Down Expand Up @@ -840,7 +840,7 @@ private void GetEmotes(Dictionary<int, SKBitmap> chatEmotes, List<Comment> 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
Expand Down

0 comments on commit 225e2fd

Please sign in to comment.