mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Merge pull request #2976 from spjspj/master
Add information to inform which images are missing.
This commit is contained in:
commit
bce87e41aa
1 changed files with 1 additions and 0 deletions
|
@ -316,6 +316,7 @@ public class DownloadPictures extends DefaultBoundedRangeModel implements Runnab
|
||||||
List<CardDownloadData> cardsToDownload = Collections.synchronizedList(new ArrayList<>());
|
List<CardDownloadData> cardsToDownload = Collections.synchronizedList(new ArrayList<>());
|
||||||
allCardsUrls.parallelStream().forEach(card -> {
|
allCardsUrls.parallelStream().forEach(card -> {
|
||||||
TFile file = new TFile(CardImageUtils.generateImagePath(card));
|
TFile file = new TFile(CardImageUtils.generateImagePath(card));
|
||||||
|
logger.debug(card.getName() + " (is_token=" + card.isToken() + "). Image is here:" + file.getAbsolutePath() + " (exists=" + file.exists());
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
logger.debug("Missing: " + file.getAbsolutePath());
|
logger.debug("Missing: " + file.getAbsolutePath());
|
||||||
cardsToDownload.add(card);
|
cardsToDownload.add(card);
|
||||||
|
|
Loading…
Reference in a new issue