mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-08-20 16:35:02 -05:00
After MTGJSON adds the sets, we don't want them anymore. Goodbye spoiler season!
This commit is contained in:
3
main.py
3
main.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user