From f5838692d711e6c8d0b8f0dc7716ea28707df4f2 Mon Sep 17 00:00:00 2001 From: Dang Mai Date: Wed, 30 Jan 2013 21:27:00 -0500 Subject: [PATCH] Add default for playlist_dir --- beetsplug/smartplaylist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index 365f2f802..dc4fe2b92 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -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': [] })