Some minor fixes.

This commit is contained in:
spjspj 2016-09-18 20:20:04 +10:00
parent 086ef80172
commit 8cf4acb68a

View file

@ -30,6 +30,7 @@ package org.mage.plugins.card.dl.sources;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.HashMap; import java.util.HashMap;
import java.util.logging.Level;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.mage.plugins.card.images.CardDownloadData; import org.mage.plugins.card.images.CardDownloadData;
import org.mage.plugins.card.images.DownloadPictures; import org.mage.plugins.card.images.DownloadPictures;
@ -53,7 +54,7 @@ public class GrabbagImageSource implements CardImageSource {
@Override @Override
public String getSourceName() { public String getSourceName() {
return "http://anonymouse.org/cgi-bin/anon-www.cgi/http://magiccards.info/scans/en/"; return "http://magiccards.info/scans/en/" ;
} }
@Override @Override
@ -66,6 +67,10 @@ public class GrabbagImageSource implements CardImageSource {
if (copyUrlToImage == null) { if (copyUrlToImage == null) {
setupLinks(); setupLinks();
} }
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {
}
for (String key : copyUrlToImageDone.keySet()) { for (String key : copyUrlToImageDone.keySet()) {
if (copyUrlToImageDone.get(key) < maxTimes) { if (copyUrlToImageDone.get(key) < maxTimes) {