mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Correct recognition of number of setless pictures
This commit is contained in:
@@ -203,7 +203,7 @@ public class ImageCache {
|
|||||||
} else {
|
} else {
|
||||||
// without set number of pictures equals number of urls provided in Svar:Picture
|
// without set number of pictures equals number of urls provided in Svar:Picture
|
||||||
String urls = backFace ? card.getPictureOtherSideUrl() : card.getPictureUrl();
|
String urls = backFace ? card.getPictureOtherSideUrl() : card.getPictureUrl();
|
||||||
cntPictures = StringUtils.countMatches(urls, "\\\\") + 1;
|
cntPictures = StringUtils.countMatches(urls, "\\") + 1;
|
||||||
|
|
||||||
// raise the art index limit to the maximum of the sets this card was printed in
|
// raise the art index limit to the maximum of the sets this card was printed in
|
||||||
int maxCntPictures = 1;
|
int maxCntPictures = 1;
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public class GuiDownloadPicturesLQ extends GuiDownloader {
|
|||||||
final String urlToDownload;
|
final String urlToDownload;
|
||||||
int urlIndex = 0;
|
int urlIndex = 0;
|
||||||
int allUrlsLen = 1;
|
int allUrlsLen = 1;
|
||||||
if (urls.indexOf("\\\\") < 0)
|
if (urls.indexOf("\\") < 0)
|
||||||
urlToDownload = urls;
|
urlToDownload = urls;
|
||||||
else {
|
else {
|
||||||
String[] allUrls = urls.split("\\\\");
|
String[] allUrls = urls.split("\\\\");
|
||||||
|
|||||||
Reference in New Issue
Block a user