- Experimental fix for the Picture URL not being processed correctly for split cards when downloading card images (can't test because for some reason the LQ picture downloader crashes for me, even without this fix in its stock trunk form).

This commit is contained in:
Agetian
2013-03-06 06:11:13 +00:00
parent fb838d9736
commit 74643082d8

View File

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