mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 07:23:33 +01:00
Sanitize template evaluation for smartplaylist
This commit is contained in:
parent
d1e50da71f
commit
3be24110d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue