Correct recognition of number of setless pictures

This commit is contained in:
Maxmtg
2013-03-17 21:12:56 +00:00
parent a965fcf6bd
commit 2e0bef61d1
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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("\\\\");