Check for basename(3) error.
Pass the file and name when creating a playlist.