Skip to content

Commit

Permalink
fix: use WEBP images for BTTV emotes (#5957)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz authored Feb 16, 2025
1 parent dd6f204 commit bdd903b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- Dev: Updated `qtkeychain` to 0.15.0. (#5871)
- Dev: Updated `googletest` to 1.16.0. (#5942)
- Dev: Fixed duplicate CMake configure in clean builds. (#5940)
- Dev: BTTV emotes are now loaded as WEBP. (#5957)

## 2.5.2

Expand Down
2 changes: 1 addition & 1 deletion src/providers/bttv/BttvEmotes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ constexpr QStringView EMOTE_LINK_FORMAT = u"https://betterttv.com/emotes/%1";
///
/// %2 being the emote size (e.g. 3x)
constexpr QStringView EMOTE_CDN_FORMAT =
u"https://cdn.betterttv.net/emote/%1/%2";
u"https://cdn.betterttv.net/emote/%1/%2.webp";

// BTTV doesn't provide any data on the size, so we assume an emote is 28x28
constexpr QSize EMOTE_BASE_SIZE(28, 28);
Expand Down

0 comments on commit bdd903b

Please sign in to comment.