]> diplodocus.org Git - flac-archive/blobdiff - fa-flacd
Grab Amazon artwork, but don't do anything with it yet.
[flac-archive] / fa-flacd
index 59e9c26dcd0c8d6d7564ba9dac91842c04cfdc85..84714b29416b633be6a6c972cd492f20770ef91d 100755 (executable)
--- a/fa-flacd
+++ b/fa-flacd
@@ -190,8 +190,10 @@ def flac(dir, artist, album, discnum, tracknum, track_tags, disc_artist, tags):
     # Clean up if we're the last job for dir; for multi-file dirs,
     # it's possible for more than one job to run cleanup at once, so
     # don't fail if things are already clean.
-    if os.listdir(dir) == ['using-tags']:
+    ld = os.listdir(dir)
+    if ld == ['using-tags'] or sorted(ld) == ['cover.front', 'using-tags']:
         try:
+            os.unlink(dir + '/cover.front')
             os.unlink(dir + '/using-tags')
             os.rmdir(dir)
         except EnvironmentError: