mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
change to use scryfall api get image(see https://scryfall.com/blog 2020/8/6 blog)
This commit is contained in:
@@ -68,7 +68,8 @@ public abstract class ImageFetcher {
|
|||||||
suffix = (backFace ? "b" : "a");
|
suffix = (backFace ? "b" : "a");
|
||||||
}
|
}
|
||||||
final String editionMciCode = data.getEditions().getMciCodeByCode(paperCard.getEdition());
|
final String editionMciCode = data.getEditions().getMciCodeByCode(paperCard.getEdition());
|
||||||
downloadUrls.add(String.format("https://img.scryfall.com/cards/normal/en/%s/%s%s.jpg", editionMciCode, cardNum, suffix));
|
//see https://scryfall.com/blog 2020/8/6, and https://scryfall.com/docs/api/cards/collector
|
||||||
|
downloadUrls.add(String.format("https://api.scryfall.com/cards/%s/%s%s/en?format=image&version=normal", editionMciCode, cardNum, suffix));
|
||||||
}
|
}
|
||||||
} else if (prefix.equals(ImageKeys.TOKEN_PREFIX)) {
|
} else if (prefix.equals(ImageKeys.TOKEN_PREFIX)) {
|
||||||
if (tokenImages == null) {
|
if (tokenImages == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user