From a1333d058500619b1311e206127a1cc01b0be8f6 Mon Sep 17 00:00:00 2001 From: ulrich Date: Fri, 11 Feb 2022 15:27:42 +0000 Subject: [PATCH] Erweiterung auf Kataloge fuer Fotografien --- src/tango_de_DE.properties | 1 + src/de/uhilger/tango/store/StorageFile.java | 1 + src/de/uhilger/tango/api/ListFileHandler.java | 2 ++ 3 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/de/uhilger/tango/api/ListFileHandler.java b/src/de/uhilger/tango/api/ListFileHandler.java index 1366a8d..2a3b45c 100644 --- a/src/de/uhilger/tango/api/ListFileHandler.java +++ b/src/de/uhilger/tango/api/ListFileHandler.java @@ -50,6 +50,7 @@ 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()); @@ -74,6 +75,7 @@ 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) { diff --git a/src/de/uhilger/tango/store/StorageFile.java b/src/de/uhilger/tango/store/StorageFile.java index 509a636..ac084b7 100644 --- a/src/de/uhilger/tango/store/StorageFile.java +++ b/src/de/uhilger/tango/store/StorageFile.java @@ -29,6 +29,7 @@ public static final String TYP_FILE = "file"; public static final String TYP_AUDIO = "audio"; public static final String TYP_VIDEO = "video"; + public static final String TYP_FOTO = "foto"; public static final String TYP_KATALOG = "katalog"; private String name; diff --git a/src/tango_de_DE.properties b/src/tango_de_DE.properties index 94763e7..27894da 100644 --- a/src/tango_de_DE.properties +++ b/src/tango_de_DE.properties @@ -9,6 +9,7 @@ # Parameter der Mediazentrale audioexts=audioexts videoexts=videoexts +imageexts=imageexts playerparams=playerparams host=host -- Gitblit v1.9.3