From b56bb3e0be136a9465589df74dd443b2bc063f90 Mon Sep 17 00:00:00 2001 From: ulrich Date: Fri, 09 Apr 2021 17:22:54 +0000 Subject: [PATCH] Abspielen in Arbeit --- src/de/uhilger/mediaz/api/ListFileHandler.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/mediaz/api/ListFileHandler.java b/src/de/uhilger/mediaz/api/ListFileHandler.java index cb9e9b4..3b01afe 100644 --- a/src/de/uhilger/mediaz/api/ListFileHandler.java +++ b/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()); } } -- Gitblit v1.9.3