From 7f44143e08ee4ed5d9c89efe5e0592d2c5b39dd8 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sun, 29 Jan 2023 17:04:48 +0000
Subject: [PATCH] Titel entfernen bei spielender Abspielliste berichtigt

---
 src/de/uhilger/tango/Server.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/de/uhilger/tango/Server.java b/src/de/uhilger/tango/Server.java
index e29c01f..1a56b0d 100644
--- a/src/de/uhilger/tango/Server.java
+++ b/src/de/uhilger/tango/Server.java
@@ -121,9 +121,12 @@
     server.createContext(ctx + rb.getString(RB_WEBROOT), new FileHandler(wwwDir.getAbsolutePath()));
     ablageorteEinklinken(server, rb, conf);
     server.createContext(ctx + rb.getString(RB_STORE), new StorageHandler(conf));
-    server.createContext(ctx + rb.getString(RB_STRG), new MediaSteuerung(conf));
+    MediaSteuerung ms = new MediaSteuerung(conf);
+    server.createContext(ctx + rb.getString(RB_STRG), ms);
     server.createContext(ctx + rb.getString(RB_GSTRG), new GeraetSteuerung(conf));
-    server.createContext(ctx + rb.getString(RB_ALIST), new ListHandler(conf));
+    ListHandler lh = new ListHandler(conf);
+    lh.addPlaylistListener(ms);
+    server.createContext(ctx + rb.getString(RB_ALIST), lh);
     server.createContext(ctx + rb.getString(RB_STRM), new StreamHandler(conf));
     server.createContext(ctx + rb.getString(RB_STOP_SERVER), new StopServerHandler());
     //server.setExecutor(Executors.newFixedThreadPool(20));

--
Gitblit v1.9.3