Skip to content

Commit

Permalink
[scan] Fix playlist scanner ignoring lines starting with non-ascii chars
Browse files Browse the repository at this point in the history
Resolves #1795
  • Loading branch information
ejurgensen committed Aug 20, 2024
1 parent 92495a7 commit ed16cc7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/library/filescanner_playlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,7 @@ scan_playlist(const char *file, time_t mtime, int dir_id)
else if (pl_format == PLAYLIST_M3U)
path = buf;

if (!path)
continue;

// Check that first char is sane for a path
if ((!isalnum(path[0])) && (path[0] != '/') && (path[0] != '.'))
if (!path || path[0] == '\0' || path[0] == '#')
continue;

// URLs and playlists will be added to library, tracks should already be there
Expand Down

0 comments on commit ed16cc7

Please sign in to comment.