mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge pull request #4152 from JayDi85/patch-2
fix issue #4148 on download image cards with quotation mark in names
This commit is contained in:
commit
9c9db6cf96
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ public final class CardImageUtils {
|
||||||
String imageName;
|
String imageName;
|
||||||
|
|
||||||
String type = card.getType() != 0 ? ' ' + Integer.toString(card.getType()) : "";
|
String type = card.getType() != 0 ? ' ' + Integer.toString(card.getType()) : "";
|
||||||
String name = card.getFileName().isEmpty() ? card.getName().replace(":", "").replace("//", "-") : card.getFileName();
|
String name = card.getFileName().isEmpty() ? card.getName().replace(":", "").replace("\"", "").replace("//", "-") : card.getFileName();
|
||||||
|
|
||||||
if (card.getUsesVariousArt()) {
|
if (card.getUsesVariousArt()) {
|
||||||
imageName = name + '.' + card.getCollectorId() + ".full.jpg";
|
imageName = name + '.' + card.getCollectorId() + ".full.jpg";
|
||||||
|
|
Loading…
Reference in a new issue