From 3866a756db6c85e36d1896af8461682c8c19a2ec Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 11 May 2022 08:40:14 +0000
Subject: [PATCH] Rueckmeldung fuer Lautstaerkeregelung unterbunden

---
 src/de/uhilger/tango/api/ListFileHandler.java |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/tango/api/ListFileHandler.java b/src/de/uhilger/tango/api/ListFileHandler.java
index 3aed9e0..2a3b45c 100644
--- a/src/de/uhilger/tango/api/ListFileHandler.java
+++ b/src/de/uhilger/tango/api/ListFileHandler.java
@@ -48,6 +48,10 @@
  */
 public class ListFileHandler extends FileHandler {
   
+  public static final String RB_AUDIOEXTS = "audioexts";
+  public static final String RB_VIDEOEXTS = "videoexts";
+  public static final String RB_FOTOEXTS = "imageexts";
+  
   /* Der Logger fuer diesen ListFileHandler */
   private static final Logger logger = Logger.getLogger(ListFileHandler.class.getName());
   
@@ -58,7 +62,9 @@
   
   Map extMap = new HashMap();
   
-  public ListFileHandler(String absoluteDirectoryPathAndName) {
+  private String conf;
+  
+  public ListFileHandler(String absoluteDirectoryPathAndName, String conf) {
     super(absoluteDirectoryPathAndName);
     /*
       Ermittlung von Dateifiltern. 
@@ -66,9 +72,10 @@
       jeweils als Dateierweiterungen mit Komma getrennt
       z.B. "mp4,m4v"
     */
-    FileStorage fs = new FileStorage(App.getInitParameter(App.getRs(App.RB_AP_CONF)));
-    initMap(fs, App.getRs(App.RB_AUDIOEXTS), StorageFile.TYP_AUDIO);
-    initMap(fs, App.getRs(App.RB_VIDEOEXTS), StorageFile.TYP_VIDEO);
+    FileStorage fs = new FileStorage(conf);
+    initMap(fs, getResString(RB_AUDIOEXTS), StorageFile.TYP_AUDIO);
+    initMap(fs, getResString(RB_VIDEOEXTS), StorageFile.TYP_VIDEO);
+    initMap(fs, getResString(RB_FOTOEXTS), StorageFile.TYP_FOTO);
   }
 
   private void initMap(Storage s, String key, String typ) {

--
Gitblit v1.9.3