diff --git a/res/assignSetInfo.py b/res/assignSetInfo.py index f398074d412..00a4649cbf1 100644 --- a/res/assignSetInfo.py +++ b/res/assignSetInfo.py @@ -120,16 +120,23 @@ if __name__ == '__main__': firstLine = cardfile.readline().strip() cardName = firstLine[5:] + altName = None - print (cardName, fileName) validLines = [] validLines.append(firstLine) for line in cardfile.readlines(): if line[:8] != "SetInfo:" and line[:8] != "SVar:Rar": validLines.append(line.strip()) + if line[:5] == "Name:": + altName = line[5:].strip() cardfile.close() + print (cardName, altName, fileName) + + if not cardName in mtgDataCards and not altName is None: + cardName = altName + for e in mtgDataCards[cardName]: if not setCodeToForge[e] is None: validLines.append( "SetInfo:{} {}".format(setCodeToForge[e], mtgDataCards[cardName][e]) ) diff --git a/res/mtgdata-sets-to-forge.txt b/res/mtgdata-sets-to-forge.txt index 5cc7a6c56ed..a92117a06ae 100644 --- a/res/mtgdata-sets-to-forge.txt +++ b/res/mtgdata-sets-to-forge.txt @@ -25,7 +25,7 @@ AQ ATQ # Antiquities CG UDS # Urza's Destiny CH CHR # Chronicles ===CHK # Champions of Kamigawa ----CM1 # Commander's Arsenal +===CM1 # Commander's Arsenal CMD COM # Magic: The Gathering-Commander CON CFX # Conflux ===CSP # Coldsnap