mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Remove slash breaking non-english releases
This commit is contained in:
parent
be60113085
commit
aecb205eaf
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