forgot to add the Jpeg entry to the media_type table..
[mir.git] / source / mir / media / MediaHandlerGeneric.java
index 1710c95..b8a60a3 100755 (executable)
@@ -129,9 +129,10 @@ public class MediaHandlerGeneric implements MirMedia
 
     public String getURL(Entity ent, Entity mediaTypeEnt)
     {
+      int size = Integer.parseInt(ent.getValue("size"), 10)/1024;
       String title = ent.getValue("title")+
         " - "+mediaTypeEnt.getValue("name")+" "+
-        ent.getValue("size")+" Bytes";
+        size+" KB";
       return StringUtil.createURLLinks(ent.getValue("publish_server")+"/"+
         ent.getValue("publish_path"), title, imageRoot, getBigIcon());
     }