From 3be24110d720e3c4151ee60730c7bd5b12427a2b Mon Sep 17 00:00:00 2001 From: Dang Mai Date: Mon, 11 Feb 2013 21:37:14 -0500 Subject: [PATCH] Sanitize template evaluation for smartplaylist --- beetsplug/smartplaylist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index 2887fcb6e..b77ea0d5e 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -42,7 +42,8 @@ def update_playlists(lib): # As we allow tags in the m3u names, we'll need to iterate through # the items and generate the correct m3u file names. for item in items: - m3u_name = item.evaluate_template(Template(basename), lib=lib) + m3u_name = item.evaluate_template(Template(basename), lib=lib, + sanitize=True) if not (m3u_name in m3us): m3us[m3u_name] = [] if relative_to: