Fixed M3U parser for last lines ending without a newline.
This commit is contained in:
parent
3751904cb4
commit
82905a8cdd
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user