mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-08-25 10:55:18 -05:00
Ignore blank images from MTGS (#48)
This commit is contained in:
@@ -809,7 +809,8 @@ def get_image_urls(mtgjson, isfullspoil, setname, setlongname, setSize=269, seti
|
||||
mtgsImages = scrape_mtgs_images(setinfo['mtgsurl'], setinfo['mtgscardpath'], WOTC)
|
||||
for card in mtgjson['cards']:
|
||||
if card['name'] in mtgsImages:
|
||||
card['url'] = mtgsImages[card['name']]['url']
|
||||
if mtgsImages[card['name']]['url'] != '':
|
||||
card['url'] = mtgsImages[card['name']]['url']
|
||||
|
||||
for card in mtgjson['cards']:
|
||||
if len(str(card['url'])) < 10:
|
||||
|
||||
Reference in New Issue
Block a user