Merge pull request #2317 from spjspj/master

Some minor fixes for grabbag
This commit is contained in:
spjspj 2016-09-18 20:22:00 +10:00 committed by GitHub
commit 88b557e1b2

View file

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