Commits

Dang Mai  committed f5e3698

Add default for playlist_dir

  • Participants
  • Parent commits 094485f

Comments (0)

Files changed (1)

File beetsplug/smartplaylist.py

         # 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')
         super(SmartPlaylistPlugin, self).__init__()
         self.config.add({
             'relative_to': None,
+            'playlist_dir': u'.',
             'playlists': []
         })