mirror of
https://github.com/correl/mage.git
synced 2024-11-25 19:19:55 +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";
|
alternativeUrl = link + defaultCode + "?format=image";
|
||||||
// workaround to use cards without english images (some promos or special cards)
|
// workaround to use cards without english images (some promos or special cards)
|
||||||
if (Objects.equals(baseUrl, alternativeUrl) && baseUrl.endsWith("/en?format=image")) {
|
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 {
|
} else {
|
||||||
// image
|
// image
|
||||||
|
|
Loading…
Reference in a new issue