mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* HQ Images download - Fixed downlaod of basic lands and split cards.
This commit is contained in:
parent
be9da26100
commit
703529901a
1 changed files with 2 additions and 5 deletions
|
|
@ -58,17 +58,14 @@ public class MtgImageSource implements CardImageSource {
|
|||
url.append(cardSet.toUpperCase()).append("/");
|
||||
|
||||
if (card.isSplitCard()) {
|
||||
url.append(card.getName().replaceAll(" // ", ""));
|
||||
url.append(card.getDownloadName().replaceAll(" // ", ""));
|
||||
} else {
|
||||
url.append(card.getName());
|
||||
url.append(card.getDownloadName());
|
||||
}
|
||||
|
||||
if (card.isTwoFacedCard()) {
|
||||
url.append(card.isSecondSide() ? "b" : "a");
|
||||
}
|
||||
if (card.isSplitCard()) {
|
||||
url.append("a");
|
||||
}
|
||||
if (card.isFlipCard()) {
|
||||
if (card.isFlippedSide()) { // download rotated by 180 degree image
|
||||
url.append("b");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue