Remove slash breaking non-english releases

This commit is contained in:
Zach Sorenson 2023-02-23 19:46:33 -06:00 committed by GitHub
parent be60113085
commit aecb205eaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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