- The real (hopefully) fix for the split card LQ pictures not being downloaded correctly from a picture URL.

This commit is contained in:
Agetian
2013-03-06 07:17:33 +00:00
parent c045cbe93c
commit 3c918be717

View File

@@ -67,7 +67,11 @@ public class GuiDownloadPicturesLQ extends GuiDownloader {
for (final IPaperCard c : CardDb.instance().getUniqueCards()) { for (final IPaperCard c : CardDb.instance().getUniqueCards()) {
//System.out.println(c.getName()); //System.out.println(c.getName());
CardRules cardRules = c.getRules(); CardRules cardRules = c.getRules();
if (cardRules != null && cardRules.getSplitType() == CardSplitType.Split && cardRules.getOtherPart() != null) {
this.createDLObjects(cardRules.getPictureUrl(), String.format("%s%s", cardRules.getMainPart().getName(), cardRules.getOtherPart().getName()));
} else {
this.createDLObjects(cardRules.getPictureUrl(), cardRules.getMainPart().getName()); this.createDLObjects(cardRules.getPictureUrl(), cardRules.getMainPart().getName());
}
ICardCharacteristics secondSide = cardRules.getOtherPart(); ICardCharacteristics secondSide = cardRules.getOtherPart();
if (secondSide != null && cardRules.getSplitType() == CardSplitType.Transform) { if (secondSide != null && cardRules.getSplitType() == CardSplitType.Transform) {