mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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.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) {
|
||||
|
|
Loading…
Reference in a new issue