From 2212ec0bbb3952aef3d49233b394b590fbd65c57 Mon Sep 17 00:00:00 2001 From: nerix Date: Fri, 3 Jan 2025 22:53:49 +0100 Subject: [PATCH] fix: unescape Twitch emotes even more (#5786) --- CHANGELOG.md | 1 + src/providers/twitch/TwitchEmotes.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32809701..07ec4576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Bugfix: Make macos fonts look the same as v2.5.1. (#5775) - Bugfix: Fixed 7TV usernames messing with Qt's HTML (#5780) - Bugfix: Fixed BTTV emotes occasionally showing the wrong author. (#5783) +- Bugfix: Fixed some Twitch emotes containing HTML entities. (#5786) - Dev: Hard-code Boost 1.86.0 in macos CI builders. (#5774) ## 2.5.2-beta.1 diff --git a/src/providers/twitch/TwitchEmotes.cpp b/src/providers/twitch/TwitchEmotes.cpp index 005aff34..0b160d6e 100644 --- a/src/providers/twitch/TwitchEmotes.cpp +++ b/src/providers/twitch/TwitchEmotes.cpp @@ -426,8 +426,8 @@ QString TwitchEmotes::cleanUpEmoteCode(const QString &dirtyEmoteCode) cleanCode.detach(); static QMap emoteNameReplacements{ - {"[oO](_|\\.)[oO]", "O_o"}, {"\\>\\;\\(", ">("}, - {"\\<\\;3", "<3"}, {"\\:-?(o|O)", ":O"}, + {"[oO](_|\\.)[oO]", "O_o"}, {"\\>\\;\\(", ">("}, + {"\\<\\;3", "<3"}, {"\\:-?(o|O)", ":O"}, {"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"}, {"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("}, {"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},