mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 09:43:45 -04:00
Ignore empty lines in M3U playlists
This commit is contained in:
parent
cc75bd6eef
commit
4aa207533e
@ -156,7 +156,7 @@ scan_m3u_playlist(char *file)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((buf[0] == ';') || (buf[0] == '#'))
|
if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
while (isspace(buf[len - 1]))
|
while (isspace(buf[len - 1]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user