Persoenliche Mediazentrale
ulrich
2021-04-09 b56bb3e0be136a9465589df74dd443b2bc063f90
src/de/uhilger/mediaz/api/ListFileHandler.java
@@ -85,6 +85,7 @@
          StorageFile sf = new StorageFile();
          String fname = file.getName();
          sf.setName(fname);
          sf.setTitelAnzName(fname);
          if(file.isDirectory()) {
            sf.setTyp(StorageFile.TYP_FOLDER);
          } else {
@@ -117,7 +118,10 @@
    if(sf.getTyp().equalsIgnoreCase(StorageFile.TYP_AUDIO)) {
      Track track = new Track(file);
      sf.setInterpret(track.getArtist());
      sf.setTitelAnzName(track.getTitle());
      String trackTitel = track.getTitle();
      if(trackTitel != null && trackTitel.length() > 0) {
        sf.setTitelAnzName(trackTitel);
      }
      sf.setAlbum(track.getAlbum());
    }
  }