mirror of
https://github.com/beetbox/beets.git
synced 2026-01-17 13:44:01 +01:00
smartplaylist: use new evaluate_template signature
This commit is contained in:
parent
806c6bf1fa
commit
04c0bd50fd
1 changed files with 1 additions and 3 deletions
|
|
@ -19,7 +19,6 @@ from __future__ import print_function
|
|||
from beets.plugins import BeetsPlugin
|
||||
from beets import config, ui, library
|
||||
from beets.util import normpath, syspath
|
||||
from beets.util.functemplate import Template
|
||||
import os
|
||||
|
||||
# Global variable so that smartplaylist can detect database changes and run
|
||||
|
|
@ -42,8 +41,7 @@ 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),
|
||||
sanitize=True)
|
||||
m3u_name = item.evaluate_template(basename, True)
|
||||
if not (m3u_name in m3us):
|
||||
m3us[m3u_name] = []
|
||||
if relative_to:
|
||||
|
|
|
|||
Loading…
Reference in a new issue