After MTGJSON adds the sets, we don't want them anymore. Goodbye spoiler season!

This commit is contained in:
tritoch
2017-07-02 11:07:16 -05:00
parent 91cc9559e5
commit 80c09b1e88

View File

@@ -86,6 +86,9 @@ if __name__ == '__main__':
AllSets = spoilers.get_allsets() #get AllSets from mtgjson
combinedjson = {}
for setinfo in setinfos:
if setinfo['setname'] in AllSets:
print "Found set from set_info " +setinfo['setname']+ " in MTGJSON, not adding it"
continue
if presets['oldRSS'] or 'noRSS' in setinfo and setinfo['noRSS']:
mtgs = { "cards":[] }
else: