From 1c32320e2ed6c0e4353e016f179e474a6ef25e64 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Thu, 29 Apr 2021 15:54:33 +0000
Subject: [PATCH] Livestreams aus Medialiste entfernt
---
src/de/uhilger/tango/api/MediaSteuerung.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/de/uhilger/tango/api/MediaSteuerung.java b/src/de/uhilger/tango/api/MediaSteuerung.java
index d8947c7..e55be01 100644
--- a/src/de/uhilger/tango/api/MediaSteuerung.java
+++ b/src/de/uhilger/tango/api/MediaSteuerung.java
@@ -53,7 +53,6 @@
*
* HTTP GET /mz/api/strg/abspieler/pause
* HTTP GET /mz/api/strg/abspieler/stop
- * FALSCH: HTTP GET /mz/api/strg/abspieler/weiter
*
* Faustregel: Anzahl Elemente eines URL plus 1 ist die Anzahl der Elemente des
* Ergebnisses von String.split.
@@ -69,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";
@@ -303,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