For a while ISD images are restricted for downloading from magiccards.info

Images have too bad quality
This commit is contained in:
magenoxx 2011-09-25 14:25:54 +04:00
parent c3c8d587fb
commit f3316853a2
2 changed files with 5 additions and 1 deletions

View file

@ -60,6 +60,10 @@ public class MagicCardsImageSource implements CardImageSource {
StringBuilder url = new StringBuilder("http://magiccards.info/scans/en/");
url.append(set.toLowerCase()).append("/").append(collectorId);
if (cardSet.equals("ISD")) {
throw new Exception("ISD is not downloadable from magiccards.info. The ISD images have too bad quality.");
}
if (twoFacedCard) {
url.append(secondSide ? "b" : "a");
}

View file

@ -75,7 +75,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
private static CardImageSource cardImageSource;
private Proxy p = Proxy.NO_PROXY;;
private Proxy p = Proxy.NO_PROXY;
private ExecutorService executor = Executors.newFixedThreadPool(10);