mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
convert: log transcoding command
This commit is contained in:
parent
d828d7aae4
commit
b7e2ba7795
1 changed files with 6 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import threading
|
|||
from subprocess import Popen
|
||||
import tempfile
|
||||
from string import Template
|
||||
import pipes
|
||||
|
||||
from beets.plugins import BeetsPlugin
|
||||
from beets import ui, util
|
||||
|
|
@ -80,10 +81,13 @@ def encode(source, dest):
|
|||
for arg in command:
|
||||
arg = arg.encode('utf-8')
|
||||
opts.append(Template(arg).substitute({
|
||||
'source': source,
|
||||
'dest': dest
|
||||
'source': source,
|
||||
'dest': dest,
|
||||
}))
|
||||
|
||||
log.debug(u'convert: executing: {0}'.format(
|
||||
u' '.join(pipes.quote(o.decode('utf8', 'ignore')) for o in opts)
|
||||
))
|
||||
encode = Popen(opts, close_fds=True, stderr=DEVNULL)
|
||||
encode.wait()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue