mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Merge pull request #10066 from zachmsorenson/fix-scryfall-nonlocalized-fallback
Remove slash breaking non-english releases
This commit is contained in:
commit
1465c849e9
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ public enum ScryfallImageSource implements CardImageSource {
|
|||
alternativeUrl = link + defaultCode + "?format=image";
|
||||
// workaround to use cards without english images (some promos or special cards)
|
||||
if (Objects.equals(baseUrl, alternativeUrl) && baseUrl.endsWith("/en?format=image")) {
|
||||
alternativeUrl = alternativeUrl.replace("/en?format=image", "/?format=image");
|
||||
alternativeUrl = alternativeUrl.replace("/en?format=image", "?format=image");
|
||||
}
|
||||
} else {
|
||||
// image
|
||||
|
|
Loading…
Reference in a new issue