mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-04-18 13:08:40 -05:00
Aftermath Handling
Split MTGS-sourced aftermath card text on two newlines instead of three, which will catch both
This commit is contained in:
parent
82836d7141
commit
be0a51267c
|
|
@ -59,7 +59,7 @@ def parse_mtgs(mtgs, manual_cards=[], card_corrections=[], delete_cards=[], spli
|
|||
card['name'] = card['name'].replace(' // ','//')
|
||||
card1 = card.copy()
|
||||
card1['name'] = card['name'].split('//')[0]
|
||||
card1['rules'] = card['rules'].split('\n\n\n')[0]
|
||||
card1['rules'] = card['rules'].split('\n\n')[0]
|
||||
card2 = dict(cost='',cmc='',img='',pow='',name='',rules='',type='',
|
||||
color='', altname='', colorIdentity='', colorArray=[], colorIdentityArray=[], setnumber='', rarity='')
|
||||
card2["name"] = card['name'].split('//')[1]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user