Skip to content

Commit

Permalink
fix beetbox#1490 don't overwrite basename argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraymer authored and LordSputnik committed Jul 6, 2015
1 parent 9b24adf commit 04e399f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions beetsplug/importfeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ def _record_items(self, lib, basename, items):
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:
Expand Down

0 comments on commit 04e399f

Please sign in to comment.