Examples of NiceifyName


Examples of com.itstherules.mediacentre.freemarker.method.NiceifyName

      String album = parent.getName();
    String artist = parentParent.getName();
      List<File> files = new ItemsModel(directory.getAbsolutePath(),"", Extension.mp3.toString()).asList();
      for (File file : files) {
        try {
        String track = ((SimpleScalar) new NiceifyName().exec(Collections.singletonList(file.getName()))).getAsString();
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("title", track);
        map.put("album", album);
        map.put("artist", artist);
        new ParameterBasedMp3(map).persist(directory.getAbsolutePath());
View Full Code Here

Examples of com.itstherules.mediacentre.freemarker.method.NiceifyName

      List<File> files = new ItemsModel("music/"+albumDirectory,"", Extension.mp3.toString()).asList();
      List<Mp3> mp3s = new FileMp3Converter().convert(files);
      for (Mp3 mp3 : mp3s) {
      String track;
      try {
        track = ((SimpleScalar) new NiceifyName().exec(Collections.singletonList(mp3.getName()))).getAsString();
      } catch (TemplateModelException e) {
        throw new RuntimeException("programattic error");
      }
      if("true".equalsIgnoreCase((String) parameters.get("updateTrackName"))){
        parameters.put("title", track);
View Full Code Here

Examples of com.itstherules.mediacentre.freemarker.method.NiceifyName

    template.process(map, writer);
    writer.close();
  }
 
  private void populate(Map<String, Object> map) {
    map.put("niceify", new NiceifyName());
    map.put("encode", new Encoder());
    map.put("host", new HostScalar().value());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.