diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index c84f1c612..c8ff0f9be 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -42,7 +42,7 @@ def update_playlists(lib): else: paths = [item.path for item in items] basename = playlist['name'].encode('utf8') - m3u_path = os.path.join(playlist_dir, basename) + m3u_path = normpath(os.path.join(playlist_dir, basename)) with open(syspath(m3u_path), 'w') as f: for path in paths: f.write(path + '\n')