mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 03:34:31 +01:00
add missing py3_path to tempdir in convert plugin
This commit is contained in:
parent
f9dfd34602
commit
5107f2e6d2
1 changed files with 3 additions and 2 deletions
|
|
@ -428,8 +428,9 @@ class ConvertPlugin(BeetsPlugin):
|
|||
|
||||
# Create a temporary file for the conversion.
|
||||
tmpdir = self.config['tmpdir'].get()
|
||||
tmpdir = util.bytestring_path(tmpdir) if tmpdir else None
|
||||
fd, dest = tempfile.mkstemp(b'.' + ext, dir=tmpdir)
|
||||
if tmpdir:
|
||||
tmpdir = util.py3_path(util.bytestring_path(tmpdir))
|
||||
fd, dest = tempfile.mkstemp(util.py3_path(b'.' + ext), dir=tmpdir)
|
||||
os.close(fd)
|
||||
dest = util.bytestring_path(dest)
|
||||
_temp_files.append(dest) # Delete the transcode later.
|
||||
|
|
|
|||
Loading…
Reference in a new issue