From 1860114b7c588fd7c2fa7a4dc5d76ccf711ea8a2 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 13 Sep 2020 11:23:55 +0200 Subject: [PATCH] Trim playlist from whitespaces --- clapper_src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clapper_src/player.js b/clapper_src/player.js index 63747fb1..d6198c38 100644 --- a/clapper_src/player.js +++ b/clapper_src/player.js @@ -110,7 +110,7 @@ class ClapperPlayer extends GstPlayer.Player let line; while((line = stream.read_line(null)[0])) { - line = String(line); + line = String(line).trim(); debug(`new playlist item: ${line}`); playlist.push(line); }