[scan] Fix playlist scanner ignoring lines starting with non-ascii chars
Resolves #1795
This commit is contained in:
parent
92495a7fac
commit
ed16cc7928
|
@ -490,11 +490,7 @@ scan_playlist(const char *file, time_t mtime, int dir_id)
|
||||||
else if (pl_format == PLAYLIST_M3U)
|
else if (pl_format == PLAYLIST_M3U)
|
||||||
path = buf;
|
path = buf;
|
||||||
|
|
||||||
if (!path)
|
if (!path || path[0] == '\0' || path[0] == '#')
|
||||||
continue;
|
|
||||||
|
|
||||||
// Check that first char is sane for a path
|
|
||||||
if ((!isalnum(path[0])) && (path[0] != '/') && (path[0] != '.'))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// URLs and playlists will be added to library, tracks should already be there
|
// URLs and playlists will be added to library, tracks should already be there
|
||||||
|
|
Loading…
Reference in New Issue