Skip to content

Commit

Permalink
almost there...
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Jun 21, 2024
1 parent efaf75d commit b915cef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ static void run() throws IOException {
String screenshotId = screenshotUrl.substring("https://images.gamebanana.com/".length(), screenshotUrl.lastIndexOf(".")).replace("/", "_") + ".png";

if (bananaMirrorList.contains(screenshotId)) {
log.trace("Image {} is already mirrored and will be kept", fileId);
log.trace("Image {} is already mirrored and will be kept", screenshotId);
toDelete.remove(screenshotId);
} else {
// file is new!
log.info("Image {} is not currently mirrored! Doing that now.", fileId);
log.info("Image {} is not currently mirrored! Doing that now.", screenshotId);
downloadFile(screenshotUrl, screenshotId, bananaMirrorList);
}
}
Expand Down

0 comments on commit b915cef

Please sign in to comment.