Adds !corrected_name! and !corrected_name_lower! to customURL (#2255)

This commit is contained in:
Jeff 2016-11-01 00:13:39 -04:00 committed by Zach H
parent 9ebbd0c3ca
commit a2f4fa916e

View file

@ -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!") ||