Version 5.0.0
[fanfix.git] / src / be / nikiroo / utils / Downloader.java
index 68e4dd73e285a941e3193ac6155d846fea2e8316..2a462a81efe752a7b596c631e1dae68e2b3de00a 100644 (file)
@@ -1,6 +1,5 @@
 package be.nikiroo.utils;
 
-import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStreamWriter;
@@ -346,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 {