From 94c45ccb52cff4fe8e4fc8b31cef9eb16da80c85 Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 31 Mar 2021 21:32:43 +0000 Subject: [PATCH] OMXPlayer Log verarbeiten --- src/de/uhilger/avdirektor/handler/PlayHandler.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/avdirektor/handler/PlayHandler.java b/src/de/uhilger/avdirektor/handler/PlayHandler.java index d201d48..aa32fcd 100644 --- a/src/de/uhilger/avdirektor/handler/PlayHandler.java +++ b/src/de/uhilger/avdirektor/handler/PlayHandler.java @@ -19,6 +19,7 @@ package de.uhilger.avdirektor.handler; import com.sun.net.httpserver.HttpExchange; +import de.uhilger.avdirektor.App; import java.util.logging.Level; import java.util.logging.Logger; @@ -52,7 +53,7 @@ @Override protected String process(HttpExchange t, String params) { - String antwort = abspielen( + String antwort = App.getPlayer().abspielen( getParam(map, "titel"), params, getParam(map, "r"), "1"); logger.log(Level.FINE, antwort); return antwort; @@ -66,6 +67,10 @@ params.append(getParam(map, "th")); params.append(" --timeout "); params.append(getParam(map, "ti")); + String log = getParam(map, "log"); + if(log != null && log.equalsIgnoreCase("true")) { + params.append(" --genlog"); + } return params; } -- Gitblit v1.9.3