Fixed M3U parser for last lines ending without a newline.

This commit is contained in:
Fabian Schlenz 2019-11-30 13:38:34 +01:00
parent 3751904cb4
commit 82905a8cdd
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void Playlist::_parse_m3u(HTTPClientWrapper* http) {
do { do {
i = http->read(); i = http->read();
char c = i; char c = i;
if (i>=-1 && c!='\r' && c!='\n') { if (i>=0 && c!='\r' && c!='\n') {
line += c; line += c;
} else { } else {
if (line.equals("#EXTM3U")) { if (line.equals("#EXTM3U")) {