aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.net>2017-10-15 14:39:38 +0200
committerNeodarZ <neodarz@neodarz.net>2017-10-15 14:39:38 +0200
commitae6f102bed45a666162a7cc5210ddab3220ff83c (patch)
tree2c1f272f56eafa643734b44b76d4179b069422f5
parent33cafb994b9f66e6e095cc72307bff5bce0da29b (diff)
downloadconvert.py-ae6f102bed45a666162a7cc5210ddab3220ff83c.tar.xz
convert.py-ae6f102bed45a666162a7cc5210ddab3220ff83c.zip
Add support of simple quote in title of song
Diffstat (limited to '')
-rwxr-xr-xconvert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert.py b/convert.py
index 881aa76..4d1cc67 100755
--- a/convert.py
+++ b/convert.py
@@ -63,7 +63,7 @@ for file in sorted(os.listdir(sourcedir)):
print("Converting : "+file)
count += 1
#cmd = ["ffmpeg", "-n", "-i", sourcedir+"/"+name+".mp4", "-c:a", "libmp3lame", outdir+"/"+name+".mp3"]²
- cmd = "ffmpeg "+arg+" -i '"+path_rm_end_slash(sourcedir)+"/"+file+"' -c:a libmp3lame '"+outdir+"/"+name+".mp3'"
+ cmd = 'ffmpeg '+arg+' -i "'+path_rm_end_slash(sourcedir)+'/'+file+'" -c:a libmp3lame "'+outdir+'/'+name+'.mp3"'
thread = pexpect.spawn(cmd)
cpl = thread.compile_pattern_list([pexpect.EOF,"frame= *\d+",'(.+)'])