mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
For a while ISD images are restricted for downloading from magiccards.info
Images have too bad quality
This commit is contained in:
parent
c3c8d587fb
commit
f3316853a2
2 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue