fixed copying 3x versions of bttv channel emotes
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user