mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-30 23:50:19 -07:00
Adds !corrected_name! and !corrected_name_lower! to customURL (#2255)
This commit is contained in:
@@ -218,6 +218,8 @@ QString PictureLoaderWorker::getPicUrl()
|
||||
|
||||
picUrl.replace("!name!", QUrl::toPercentEncoding(card->getName()));
|
||||
picUrl.replace("!name_lower!", QUrl::toPercentEncoding(card->getName().toLower()));
|
||||
picUrl.replace("!corrected_name!", QUrl::toPercentEncoding(card->getCorrectedName()));
|
||||
picUrl.replace("!corrected_name_lower!", QUrl::toPercentEncoding(card->getCorrectedName().toLower()));
|
||||
picUrl.replace("!cardid!", QUrl::toPercentEncoding(QString::number(muid)));
|
||||
if (set)
|
||||
{
|
||||
@@ -234,6 +236,8 @@ QString PictureLoaderWorker::getPicUrl()
|
||||
if (
|
||||
picUrl.contains("!name!") ||
|
||||
picUrl.contains("!name_lower!") ||
|
||||
picUrl.contains("!corrected_name!") ||
|
||||
picUrl.contains("!corrected_name_lower!") ||
|
||||
picUrl.contains("!setnumber!") ||
|
||||
picUrl.contains("!setcode!") ||
|
||||
picUrl.contains("!setcode_lower!") ||
|
||||
|
||||
Reference in New Issue
Block a user