Remove html tag from card text

This commit is contained in:
tritoch
2017-06-18 22:07:59 -05:00
parent aa7ea2270b
commit d4ca443300

View File

@@ -79,7 +79,8 @@ def parse_mtgs(mtgs, manual_cards=[], card_corrections=[], delete_cards=[], spli
.replace('</i>', '') \
.replace('"', '"') \
.replace('blkocking', 'blocking')\
.replace('•','*')\
.replace('•',u'')\
.replace('•',u'')\
.replace('comes into the','enters the')\
.replace('threeor', 'three or')\
.replace('[i]','')\
@@ -342,7 +343,7 @@ def errorcheck(mtgjson):
errors.append({"name": card['name'], "key": key, "missing": True})
if 'text' in card:
#foo = 1
card['text'] = card['text'].replace('<i>','').replace('</i>','').replace('<em>','').replace('</em','').replace('(','')
card['text'] = card['text'].replace('<i>','').replace('</i>','').replace('<em>','').replace('</em','').replace('(','').replace('&bull;',u'')
if 'type' in card:
if 'Planeswalker' in card['type']:
if not 'loyalty' in card: