generate playlist.json automatically