From eee36623c03dd8bcd40fdbb4ad3ba75bc6f5ce42 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 30 May 2019 20:47:38 +0200 Subject: [PATCH] Version 5.0.0 --- changelog.md | 1 + src/be/nikiroo/utils/Downloader.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index d8e807f..0445b5a 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ - fix: IOUtils.readSmallStream and \n at the end - fix: Base64 implementation changed, no strange errors anymore - fix: Downloader had some problems with POST redirection +- android: binary code (.class) is now bundled in the jar, too - change: StringUtils.unzip64(String) now returns a byte[] (StringUtils.unzip64s(String) can be used instead) - change: be.nikiroo.utils.markableFileInputStream moved to be.nikiroo.utils.streams (old class still present in @Deprecated state for now) - change: TestLauncher is now "silent" by default (no exception details, see setDetails(true)) diff --git a/src/be/nikiroo/utils/Downloader.java b/src/be/nikiroo/utils/Downloader.java index 7ee551f..2a462a8 100644 --- a/src/be/nikiroo/utils/Downloader.java +++ b/src/be/nikiroo/utils/Downloader.java @@ -345,8 +345,8 @@ public class Downloader { } if (cache != null) { - String size = conn.getContentLengthLong() < 0 ? "unknown size" - : StringUtils.formatNumber(conn.getContentLengthLong()) + String size = conn.getContentLength() < 0 ? "unknown size" + : StringUtils.formatNumber(conn.getContentLength()) + "bytes"; tracer.trace("Save to cache (" + size + "): " + originalUrl); try { -- 2.27.0