- Script was missing support for Timeshifted Time Spiral cards.

- The last Script update created an issue for cards with more than one set, I don't think the last batch was affected by this, but we should keep an eye out.
- Added SetInfo for Timeshifted cards currently in the system
This commit is contained in:
jendave
2011-08-06 12:04:26 +00:00
parent 33fa99fa7c
commit 3bb8a1e47a
77 changed files with 89 additions and 11 deletions

View File

@@ -111,6 +111,7 @@ def initSets():
# Time Spiral
allSets['Time Spiral'] = 'TSP'
allSets['Time Spiral "Timeshifted"'] = 'TSB'
allSets['Planar Chaos'] = 'PLC'
allSets['Future Sight'] = 'FUT'
@@ -161,12 +162,12 @@ def addSets(card):
rarity = rarity[0:raritySpace] # For older cards
# What to do with TimeShifted cards?
if rarity == 'Special':
if rarity == 'Special' and edition != 'Time Spiral "Timeshifted"':
continue
# Get setAbbreviation and setNumber
dataIndex = block.rfind('"/',0,edIndex)
data = block[dataIndex+2:edIndex-2]
data = block[dataIndex+2:edIndex-1] # 1 instead of 2 because of Portal/Mirrodin Issue
splitData = data.split('/')
setAbbr = splitData[0]