mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Fixed a problem with download of Unhinged card images with a card name.
This commit is contained in:
parent
c8b1c6058b
commit
25f5be3aba
1 changed files with 3 additions and 1 deletions
|
@ -697,7 +697,9 @@ public enum WizardCardsImageSource implements CardImageSource {
|
||||||
private String normalizeName(String name) {
|
private String normalizeName(String name) {
|
||||||
//Split card
|
//Split card
|
||||||
if (name.contains("//")) {
|
if (name.contains("//")) {
|
||||||
name = name.substring(0, name.indexOf('(') - 1);
|
if (name.indexOf('(') > 0) {
|
||||||
|
name = name.substring(0, name.indexOf('(') - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//Special timeshifted name
|
//Special timeshifted name
|
||||||
if (name.startsWith("XX")) {
|
if (name.startsWith("XX")) {
|
||||||
|
|
Loading…
Reference in a new issue