From 6611c24e1375380037a1aaff94b2709d8d5f827a Mon Sep 17 00:00:00 2001 From: Ben de Graaff Date: Fri, 4 Jun 2021 21:42:32 +0200 Subject: [PATCH] Switch to Twitch v2 emote API for animated emote support (#2863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: Paweł --- CHANGELOG.md | 1 + src/providers/twitch/TwitchEmotes.hpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c8cc6127..544830899 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Minor: Limit the number of recent chatters to improve memory usage and reduce freezes. (#2796, #2814) - Minor: Added `/popout` command. Usage: `/popout [channel]`. It opens browser chat for the provided channel. Can also be used without arguments to open current channels browser chat. (#2556, #2812) - Minor: Improved matching of game names when using `/setgame` command (#2636) +- Minor: Switch to Twitch v2 emote API for animated emote support. (#2863) - Bugfix: Fixed FFZ emote links for global emotes (#2807, #2808) ## 2.3.2 diff --git a/src/providers/twitch/TwitchEmotes.hpp b/src/providers/twitch/TwitchEmotes.hpp index e85e069a0..6ec826296 100644 --- a/src/providers/twitch/TwitchEmotes.hpp +++ b/src/providers/twitch/TwitchEmotes.hpp @@ -10,8 +10,10 @@ #include +// NB: "default" can be replaced with "static" to always get a non-animated +// variant #define TWITCH_EMOTE_TEMPLATE \ - "https://static-cdn.jtvnw.net/emoticons/v1/{id}/{scale}" + "https://static-cdn.jtvnw.net/emoticons/v2/{id}/default/dark/{scale}" namespace chatterino { struct Emote;