Add default for playlist_dir

This commit is contained in:
Dang Mai 2013-01-30 21:27:00 -05:00
parent 89b19f3e67
commit f5838692d7

View file

@ -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': []
})