fix #1490 don't overwrite basename argument

This commit is contained in:
Fabrice Laporte 2015-06-02 22:12:00 +02:00
parent a91b337d3e
commit 72075dde5d

View file

@ -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: