- public List getURL(Entity ent, Entity mediaTypeEnt) {
- List theList = new Vector();
-
- //String stringSize = ent.getFieldValue("size");
- //int size = Integer.parseInt(stringSize, 10)/1024;
- theList.add(ent);
-
- String basePath = StringUtil.regexpReplace(ent.getFieldValue("publish_path"),
- ".mp3$", "");
-
- // @todo the texts ("title") below urgently need to be sanely localizaeble
- // somehow
- Map m3uHash = new HashMap();
- m3uHash.put("publish_path", basePath + ".m3u");
- m3uHash.put("publish_server", ent.getFieldValue("publish_server"));
- m3uHash.put("title", "stream URL");
- theList.add(m3uHash);
-
- Map plsHash = new HashMap();
- plsHash.put("publish_path", basePath + ".pls");
- plsHash.put("publish_server", ent.getFieldValue("publish_server"));
- plsHash.put("title", "playlist URL");
- theList.add(plsHash);
-
- return theList;
-
- }
-