String thumbnail = ai.getThumbnailURL();
// eBay has started including a 64x64 image instead of the 96x96 ones they used to have,
// but it's named '*6464.jpg' instead of '*.jpg'.
if(thumbnail == null) thumbnail = ai.getAlternateSiteThumbnail();
ByteBuffer thumbnailImage = getThumbnailByURL(thumbnail);
// If we retrieved 'something', but it was 0 bytes long, it's not a thumbnail.
if(thumbnailImage != null && thumbnailImage.getLength() == 0) thumbnailImage = null;
String imgPath = Thumbnail.getValidImagePath(ai.getIdentifier(), thumbnailImage);
ai.setThumbnail(imgPath);
MQFactory.getConcrete("redraw").enqueue(ai.getIdentifier());