mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 19:52:48 +01:00
Add default for playlist_dir
This commit is contained in:
parent
89b19f3e67
commit
f5838692d7
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ def update_playlists(lib):
|
|||
# Now iterate through the m3us that we need to generate
|
||||
for m3u in m3us:
|
||||
m3u_path = normpath(os.path.join(playlist_dir, m3u))
|
||||
import pdb; pdb.set_trace()
|
||||
with open(syspath(m3u_path), 'w') as f:
|
||||
for path in m3us[m3u]:
|
||||
f.write(path + '\n')
|
||||
|
|
@ -64,6 +65,7 @@ class SmartPlaylistPlugin(BeetsPlugin):
|
|||
super(SmartPlaylistPlugin, self).__init__()
|
||||
self.config.add({
|
||||
'relative_to': None,
|
||||
'playlist_dir': u'.',
|
||||
'playlists': []
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue