mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed copying 3x versions of bttv channel emotes
This commit is contained in:
parent
829809b0e1
commit
db233ffbdc
1 changed files with 8 additions and 5 deletions
|
@ -133,11 +133,14 @@ void EmoteManager::reloadBTTVChannelEmotes(const QString &channelName,
|
||||||
QString link = linkTemplate;
|
QString link = linkTemplate;
|
||||||
link.detach();
|
link.detach();
|
||||||
|
|
||||||
link = link.replace("{{id}}", id).replace("{{image}}", "1x");
|
auto emote = this->getBTTVChannelEmoteFromCaches().getOrAdd(id, [&] {
|
||||||
|
util::EmoteData emoteData;
|
||||||
auto emote = this->getBTTVChannelEmoteFromCaches().getOrAdd(id, [&id, &code, &link] {
|
emoteData.image1x = new Image(link.replace("{{id}}", id).replace("{{image}}", "1x"),
|
||||||
util::EmoteData emoteData(
|
1, code, code + "<br />Channel BTTV Emote");
|
||||||
new Image(link, 1, code, code + "<br/>Channel BTTV Emote"));
|
emoteData.image2x = new Image(link.replace("{{id}}", id).replace("{{image}}", "2x"),
|
||||||
|
0.5, code, code + "<br />Channel BTTV Emote");
|
||||||
|
emoteData.image3x = new Image(link.replace("{{id}}", id).replace("{{image}}", "3x"),
|
||||||
|
0.25, code, code + "<br />Channel BTTV Emote");
|
||||||
emoteData.pageLink = "https://manage.betterttv.net/emotes/" + id;
|
emoteData.pageLink = "https://manage.betterttv.net/emotes/" + id;
|
||||||
|
|
||||||
return emoteData;
|
return emoteData;
|
||||||
|
|
Loading…
Reference in a new issue