Refactor images path code
@@ -212,21 +212,12 @@ public final class CardImageUtils {
String finalFileName = "";
if (card.getUsesVariousArt()) {
- finalFileName = cardName + '.' + card.getCollectorId() + ".full.jpg";
+ // different arts uses name + collector id
+ finalFileName = cardName + prefixType + '.' + card.getCollectorId() + ".full.jpg";
} else {
- if (card.getUsesVariousArt()) {
- // only various arts can be same name, but different postfixes (a,b,c,d,e)
- int len = card.getCollectorId().length();
- if (Character.isLetter(card.getCollectorId().charAt(len - 1))) {
- finalFileName = cardName + card.getCollectorId().charAt(len - 1) + ".full.jpg";
- } else {
- finalFileName = cardName + prefixType + ".full.jpg";
- }
- } else {
- // normal cards with same names;
+ // basic arts uses name
finalFileName = cardName + prefixType + ".full.jpg";
}
- }
// if image file exists, correct name (for case sensitive systems)
// use TFile for zips
