-#! /usr/bin/env python2.4
+#! /usr/bin/python
"""
=head1 NAME
argv.extend(['-T', i])
argv.append(infile)
# flac 1.1.3 PICTURE support
- argv.extend(['--picture', '3|image/jpeg|||cover.front'])
+ if os.path.exists('cover.front'):
+ argv.extend(['--picture', '3|image/jpeg|||cover.front'])
spew('Running flac\n')
status = os.spawnvp(os.P_WAIT, argv[0], argv)
ld = os.listdir(dir)
if ld == ['using-tags'] or sorted(ld) == ['cover.front', 'using-tags']:
try:
- os.unlink(dir + '/cover.front')
+ try:
+ os.unlink(dir + '/cover.front')
+ except OSError:
+ pass
os.unlink(dir + '/using-tags')
os.rmdir(dir)
except EnvironmentError: