diff --git a/beetsplug/importfeeds.py b/beetsplug/importfeeds.py index b1e76d9a8..6b0a46778 100644 --- a/beetsplug/importfeeds.py +++ b/beetsplug/importfeeds.py @@ -118,10 +118,9 @@ class ImportFeedsPlugin(BeetsPlugin): paths.append(relpath) if 'm3u' in formats: - basename = bytestring_path( - self.config['m3u_name'].get(unicode) - ) - m3u_path = os.path.join(feedsdir, basename) + m3u_basename = bytestring_path( + self.config['m3u_name'].get(unicode)) + m3u_path = os.path.join(feedsdir, m3u_basename) _write_m3u(m3u_path, paths) if 'm3u_multi' in formats: diff --git a/docs/changelog.rst b/docs/changelog.rst index 0ec2e53fb..5077d1fe0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -22,6 +22,8 @@ New features: Fixes: +* :doc:`/plugins/importfeeds`: Avoid generating incorrect m3u filename when + both `m3u` and `m3u_multi` options are `True`. :bug:`1490` * :doc:`/plugins/duplicates`: Avoid a crash when misconfigured. :bug:`1457` * :doc:`/plugins/mpdstats`: Avoid a crash when the music played is not in the beets library. Thanks to :user:`CodyReichert`. :bug:`1443`