mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Changed split card name using " // " as separator to be more conform with elsewere used name. But image save name uses " - ".
This commit is contained in:
parent
d799fa86d9
commit
a29dc6cb18
4 changed files with 4 additions and 4 deletions
|
|
@ -470,7 +470,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
|
|||
try {
|
||||
StringBuilder filePath = new StringBuilder();
|
||||
filePath.append(Constants.IO.imageBaseDir).append(File.separator);
|
||||
filePath.append(card.hashCode()).append(".").append(card.getName().replace(":", "")).append(".jpg");
|
||||
filePath.append(card.hashCode()).append(".").append(card.getName().replace(":", "").replace("//", "-")).append(".jpg");
|
||||
File temporaryFile = new File(filePath.toString());
|
||||
String imagePath = CardImageUtils.getImagePath(card, imagesPath);
|
||||
TFile outputFile = new TFile(imagePath);
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ public class CardImageUtils {
|
|||
String imageName;
|
||||
|
||||
String type = card.getType() != 0 ? " " + Integer.toString(card.getType()) : "";
|
||||
String name = card.getName().replace(":", "");
|
||||
String name = card.getName().replace(":", "").replace("//", "-");
|
||||
|
||||
if (card.getUsesVariousArt()) {
|
||||
imageName = name + "." + card.getCollectorId() + ".full.jpg";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue