From 2f1216d311207db1a43cb30b8e94a5f7a5641a5d Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sat, 01 May 2021 08:13:23 +0000
Subject: [PATCH] Geringfuegige Anpassung der Doku

---
 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