mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Merge pull request #2317 from spjspj/master
Some minor fixes for grabbag
This commit is contained in:
commit
88b557e1b2
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue