Skip to content

Commit

Permalink
Update AetherhubExport.java
Browse files Browse the repository at this point in the history
  • Loading branch information
nicho92 authored Dec 19, 2024
1 parent b2d3487 commit a29e9ca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/org/magic/api/exports/impl/AetherhubExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFileChooser;

import org.magic.api.beans.MTGCardStock;
import org.magic.api.beans.enums.EnumCondition;
import org.magic.api.beans.enums.EnumExportCategory;
import org.magic.api.interfaces.MTGCardsProvider;
import org.magic.api.interfaces.abstracts.extra.AbstractFormattedFileCardExport;
Expand Down Expand Up @@ -52,7 +50,7 @@ public void exportStock(List<MTGCardStock> stock, File f) throws IOException {
builder.append(mcs.getProduct().getScryfallId()).append(getSeparator());
builder.append(mcs.getProduct().getTcgPlayerId()).append(getSeparator());
builder.append(mcs.getProduct().getMkmId()).append(getSeparator());
builder.append("Mint").append(getSeparator());
builder.append(aliases.getConditionFor(this, mcs.getCondition())).append(getSeparator());
builder.append(mcs.getLanguage()).append(getSeparator());
builder.append(mcs.isFoil()?"1":"0").append(getSeparator());
builder.append(mcs.isSigned()?"1":"0").append(getSeparator());
Expand Down Expand Up @@ -85,6 +83,7 @@ public List<MTGCardStock> importStock(String content) throws IOException {
mcs.setQte(Integer.parseInt(m.group(1)));
mcs.setLanguage(m.group(14));
mcs.setFoil(m.group(15).equals("1"));
mcs.setCondition(aliases.getReversedConditionFor(this, m.group(13), EnumCondition.NEAR_MINT));
l.add(mcs);
} catch (IOException e) {
logger.error("no card found by scryfallId {}",m.group(10));
Expand Down

0 comments on commit a29e9ca

Please sign in to comment.