Token: added check for required token's class, fixed outdated sets

This commit is contained in:
Oleg Agafonov 2023-04-20 23:33:51 +04:00
parent 8b7558b78e
commit df96b89610
5 changed files with 33 additions and 47 deletions

View file

@ -454,7 +454,7 @@ public enum GrabbagImageSource implements CardImageSource {
singleLinks.put("SWS/Emblem Obi-Wan Kenobi", "Qyc10aT.png");
singleLinks.put("SWS/Aurra Sing", "BLWbVJC.png");
singleLinks.put("SWS/Yoda", "zH0sYxg.png");
singleLinks.put("SWS/Emblem Skywalker", "kHELZDJ.jpg");
singleLinks.put("SWS/Emblem Luke Skywalker", "kHELZDJ.jpg");
// Tokens
singleLinks.put("SWS/Ewok", "N2MvJyr.png");

View file

@ -610,6 +610,10 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
if (params.size() > 7 && !params.get(6).isEmpty()) {
tokenClassName = params.get(6);
}
if (tokenClassName.isEmpty()) {
errorsList.add("Tokens database: miss class name: " + line);
continue;
}
// object type
String objectType = params.get(2);