Skip to content

Commit

Permalink
add whitespace around custom youtube emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavxd committed Dec 4, 2021
1 parent aecd992 commit a003642
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt_chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ func fetchChatMessages(initialContinuationInfo string, ytCfg YtCfg) ([]ChatMessa
//
// These custom emojis are available with their image url.
//
// Adding some whitespace after custom image URLs
// Adding some whitespace around custom image URLs
// without the whitespace it would be difficult to parse these URLs
if numberOfThumbnails > 0 && numberOfThumbnails == 2 {
text += run.Emoji.Image.Thumbnails[1].Url + " "
text += " " + run.Emoji.Image.Thumbnails[1].Url + " "
} else if numberOfThumbnails == 1 {
text += run.Emoji.Image.Thumbnails[0].Url + " "
text += " " + run.Emoji.Image.Thumbnails[0].Url + " "
}
} else {
text += run.Emoji.EmojiId
Expand Down

0 comments on commit a003642

Please sign in to comment.