* Fixed a problem with download of Unhinged card images with a card name.

This commit is contained in:
LevelX2 2018-03-13 22:56:39 +01:00
parent c8b1c6058b
commit 25f5be3aba

View file

@ -697,8 +697,10 @@ public enum WizardCardsImageSource implements CardImageSource {
private String normalizeName(String name) {
//Split card
if (name.contains("//")) {
if (name.indexOf('(') > 0) {
name = name.substring(0, name.indexOf('(') - 1);
}
}
//Special timeshifted name
if (name.startsWith("XX")) {
name = name.substring(name.indexOf('(') + 1, name.length() - 1);