From 51a4a3223156e78e55ba07383f1df1684add1291 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sun, 1 Feb 2009 13:34:47 +0000 Subject: [PATCH] Erwan -updated gatherer builder with Conflux --- projects/mtg/tools/gatherer/gatherer-builder.py | 5 +++-- projects/mtg/tools/gatherer/mtgCommon.py | 9 ++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/projects/mtg/tools/gatherer/gatherer-builder.py b/projects/mtg/tools/gatherer/gatherer-builder.py index ade5f93ad..28327956f 100644 --- a/projects/mtg/tools/gatherer/gatherer-builder.py +++ b/projects/mtg/tools/gatherer/gatherer-builder.py @@ -19,7 +19,7 @@ import os import os.path from mtgCommon import * -setinfo=sets['P1'] +setinfo=sets['CFX'] stripReminderText = False conffile = open(setinfo['dir'] + ".conf", 'w') @@ -74,7 +74,8 @@ for cardRow in soup.find(id="_gridResults").findAll('tr',onmouseover="this.style htmlText = cardRow('td')[3] htmlText = replaceSymbols(htmlText) text = cleanupHTMLText(htmlText, stripReminderText) - + text = text.replace(u'\xc6', 'AE') + supertype, subtype = getCardTypes(cardRow) splitCard = split_re.match(text) diff --git a/projects/mtg/tools/gatherer/mtgCommon.py b/projects/mtg/tools/gatherer/mtgCommon.py index b967b12cb..472a36ab4 100644 --- a/projects/mtg/tools/gatherer/mtgCommon.py +++ b/projects/mtg/tools/gatherer/mtgCommon.py @@ -85,7 +85,14 @@ sets ={'BE':{'name':'Beta', 'gathdirs':['ALA/EN'], 'gathabbrev': 'ALA', 'gathname':'ShardsOfAlara', - }, + }, + 'CFX':{'name':'Conflux', + 'dir':'CFX', + 'abbrev':'CFX', + 'gathdirs':['CFX/EN'], + 'gathabbrev': 'CFX', + 'gathname':'Conflux' + }, 'UH':{'name':'Unhinged', 'dir':'UH', 'abbrev':'UH',