| | |
| | | StorageFile sf = new StorageFile(); |
| | | String fname = file.getName(); |
| | | sf.setName(fname); |
| | | sf.setTitelAnzName(fname); |
| | | if(file.isDirectory()) { |
| | | sf.setTyp(StorageFile.TYP_FOLDER); |
| | | } else { |
| | |
| | | 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()); |
| | | } |
| | | } |