Skip to content

Commit

Permalink
Use files.gamebanana.com instead of images.gamebanana.com
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Sep 7, 2024
1 parent 35a3f6e commit 8654d4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ static void run() throws IOException {
private static void downloadFile(String screenshotUrl, String screenshotId, List<String> fileList) throws IOException {
// download the screenshot
ConnectionUtils.runWithRetry(() -> {
String urlToDownload = screenshotUrl.replace("https://images.gamebanana.com/", "https://files.gamebanana.com/");
try (OutputStream os = new BufferedOutputStream(Files.newOutputStream(Paths.get("/tmp/updater_image_to_read")))) {
IOUtils.copy(new BufferedInputStream(ConnectionUtils.openStreamWithTimeout(screenshotUrl)), os);
IOUtils.copy(new BufferedInputStream(ConnectionUtils.openStreamWithTimeout(urlToDownload)), os);
}

log.debug("Thumbnailating file...");
Expand Down

0 comments on commit 8654d4a

Please sign in to comment.