From 9e965afdb7be881848bc1c68aa12cbc7804e6318 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 28 Dec 2023 10:17:59 +0300 Subject: [PATCH] src/main/java: change getSize() to getSizeBytes() Apparently this changed in DSpace 7. Untested, but it compiles now. --- .../io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java index 5017c48..ac579b1 100644 --- a/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java +++ b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java @@ -138,7 +138,7 @@ public class FixJpgJpgThumbnails { for (Bitstream originalBitstream : originalBundleBitstreams) { String originalName = originalBitstream.getName(); - long originalBitstreamBytes = originalBitstream.getSize(); + long originalBitstreamBytes = originalBitstream.getSizeBytes(); /* - check if the original file name is the same as the thumbnail name minus the extra ".jpg"