verbose and tmp.append('--verbose')
lame_options = ' '.join(tmp)
+ unquoted_fn = fn
+
# Escape any single quotes ' so we can quote this.
(fn, title, artist, album_artist,
album, date) = [(x or '').replace("'", r"'\''")
pic_options = ''
(fd, picfn) = tempfile.mkstemp()
os.close(fd)
- p = Popen(['metaflac', '--export-picture-to', picfn, fn], stderr=PIPE)
+ p = Popen(['metaflac', '--export-picture-to', picfn, unquoted_fn],
+ stderr=PIPE)
status = p.wait()
stderr = ''.join(p.stderr)
# Hacky check for flac with no album art