From 82905a8cdd7d637a90c8013158839beda7090ab1 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sat, 30 Nov 2019 13:38:34 +0100 Subject: [PATCH] Fixed M3U parser for last lines ending without a newline. --- src/playlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist.cpp b/src/playlist.cpp index 5f75e82..17f69a2 100644 --- a/src/playlist.cpp +++ b/src/playlist.cpp @@ -177,7 +177,7 @@ void Playlist::_parse_m3u(HTTPClientWrapper* http) { do { i = http->read(); char c = i; - if (i>=-1 && c!='\r' && c!='\n') { + if (i>=0 && c!='\r' && c!='\n') { line += c; } else { if (line.equals("#EXTM3U")) {