X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/05ccb9e6302c84c623781de8345dfd3d607ff9c8..e9bccd701eedf6c35fe2b1c54d61434dc99178bb:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 59e9c26..84714b2 100755 --- 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: