Commit d220f5fb authored by Sol's avatar Sol

Fetch token script images even if they aren't in the token image file

parent 67edb87c
......@@ -75,10 +75,10 @@ public class ImageFetcher {
}
}
final String filename = imageKey.substring(2) + ".jpg";
final String tokenUrl = tokenImages.get(filename);
String tokenUrl = tokenImages.get(filename);
if (tokenUrl == null) {
System.err.println("Token " + imageKey + " not found in: " + ForgeConstants.IMAGE_LIST_TOKENS_FILE);
return;
System.err.println("No specified file.. Attempting to download from default Url");
tokenUrl = String.format("%s%s", ForgeConstants.URL_TOKEN_DOWNLOAD, filename);
}
destFile = new File(ForgeConstants.CACHE_TOKEN_PICS_DIR, filename);
downloadUrls.add(tokenUrl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment