From ea73fab1d832c5e9b815042c6a6a61634125977e Mon Sep 17 00:00:00 2001
From: ulrich
Date: Fri, 30 Apr 2021 16:03:25 +0000
Subject: [PATCH] ID3-Tag-Verarbeitung verbessert

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

diff --git a/src/de/uhilger/tango/api/MediaSteuerung.java b/src/de/uhilger/tango/api/MediaSteuerung.java
index 365ede5..e55be01 100644
--- a/src/de/uhilger/tango/api/MediaSteuerung.java
+++ b/src/de/uhilger/tango/api/MediaSteuerung.java
@@ -68,7 +68,7 @@
   public static final String PL_CMD_PLAY = "play";
   public static final String PL_DEFAULT_PARAMS = "?titel=";
   public static final String PL_PARAM_RUECK = "&r=";
-  public static final String PL_API_STRG = "/api/strg/"; 
+  public static final String PL_API_STRG = "api/strg/"; 
   public static final String PL_CMD_ENDE = "ende";
   public static final String PL_CMD_STOP = "stop";
   public static final String PL_CMD_PAUSE = "pause";
@@ -302,6 +302,9 @@
     StringBuilder kmd = abspielKommando(s, abspieler, server, titelUrl, PL_CMD_PLAY);
     kmd.append(PL_PARAM_RUECK);
     kmd.append(server);
+    if(!server.endsWith(Server.SLASH)) {
+      kmd.append(Server.SLASH);
+    }
     kmd.append(PL_API_STRG);
     kmd.append(abspieler.getName());
     kmd.append("/ende");

--
Gitblit v1.9.3