]> diplodocus.org Git - flac-archive/blobdiff - fa-rip
reorder includes
[flac-archive] / fa-rip
diff --git a/fa-rip b/fa-rip
index ac35baed59841846a512fa750ecac13fa4db2b1f..be1d5ca4ec65f00461325ecabeef382e35473b2f 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -168,6 +168,7 @@ def cover_art(i, asin):
 
 def tags(releases, trackcount):
     results = []
+    seen_asins = set()
     seen_various = False
 
     tags_file('candidate-tags-0', trackcount, False)
@@ -193,7 +194,10 @@ def tags(releases, trackcount):
             # http://musicbrainz.org/ns/rel-1.0#Wikipedia
             # ...
             # http://musicbrainz.org/ns/rel-1.0#AmazonAsin
-            cover_art(str(i), release.asin)
+            asin = release.asin
+            if asin not in seen_asins:
+                seen_asins.add(asin)
+                cover_art(str(i), asin)
 
 def rip(device, trackcount, single_file):
     if device == None: