mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
special character fix
This commit is contained in:
parent
2c5463d5eb
commit
d09db1d58a
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class WizardCardsImageSource implements CardImageSource {
|
|||
Document doc = Jsoup.connect("http://www.wizards.com/magic/tcg/article.aspx?x=mtg/tcg/" + (String) setsAliases.get(cardSet)).get();
|
||||
Elements cardsImages = doc.select("img[height$=370]");
|
||||
for (int i = 0; i < cardsImages.size(); i++) {
|
||||
String cardName = cardsImages.get(i).attr("title").replace("\u00C6", "AE").replace("’", "'");
|
||||
String cardName = cardsImages.get(i).attr("title").replace("\u00C6", "AE").replace("\u2019", "'");
|
||||
if (cardName != null && !cardName.isEmpty()) {
|
||||
if (cardName.equals("Forest") || cardName.equals("Swamp") || cardName.equals("Mountain") || cardName.equals("Island") || cardName.equals("Plains")) {
|
||||
int landNumber = 1;
|
||||
|
|
Loading…
Reference in a new issue