mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Code cleanup
This commit is contained in:
parent
d34824b1c8
commit
7fcd4abcc8
2 changed files with 3 additions and 5 deletions
|
@ -264,8 +264,6 @@ public class CardPanelRenderImpl extends CardPanel {
|
||||||
protected void paintCard(Graphics2D g) {
|
protected void paintCard(Graphics2D g) {
|
||||||
// Render the card if we don't have an image ready to use
|
// Render the card if we don't have an image ready to use
|
||||||
if (cardImage == null) {
|
if (cardImage == null) {
|
||||||
LOGGER.warn("new image: " + getGameCard().getDisplayName() + "; transformed " + (isTransformed() ? "yes" : "no"));
|
|
||||||
|
|
||||||
// Try to get card image from cache based on our card characteristics
|
// Try to get card image from cache based on our card characteristics
|
||||||
ImageKey key = new ImageKey(getGameCard(), artImage,
|
ImageKey key = new ImageKey(getGameCard(), artImage,
|
||||||
getCardWidth(), getCardHeight(),
|
getCardWidth(), getCardHeight(),
|
||||||
|
|
|
@ -170,7 +170,7 @@ public enum ScryfallImageSource implements CardImageSource {
|
||||||
try {
|
try {
|
||||||
url = getFaceImageUrl(proxy, card, card.isToken(), localizedCode);
|
url = getFaceImageUrl(proxy, card, card.isToken(), localizedCode);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
logger.warn("Failed to prepare image URL (back face) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
||||||
downloadServiceInfo.incErrorCount();
|
downloadServiceInfo.incErrorCount();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,7 @@ public enum ScryfallImageSource implements CardImageSource {
|
||||||
try {
|
try {
|
||||||
url = searchCard(proxy, "6ED", card.getName());
|
url = searchCard(proxy, "6ED", card.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
logger.warn("Failed to prepare image URL (S00) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
||||||
downloadServiceInfo.incErrorCount();
|
downloadServiceInfo.incErrorCount();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -205,7 +205,7 @@ public enum ScryfallImageSource implements CardImageSource {
|
||||||
try {
|
try {
|
||||||
url = searchCard(proxy, "AKH", card.getName());
|
url = searchCard(proxy, "AKH", card.getName());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("Failed to prepare image URL for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
logger.warn("Failed to prepare image URL (E01) for " + card.getName() + " (" + card.getSet() + ") #" + card.getCollectorId());
|
||||||
downloadServiceInfo.incErrorCount();
|
downloadServiceInfo.incErrorCount();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue