From: Date: Mon, 2 Jan 2012 00:45:53 +0000 (-0800) Subject: Don't fetch same ASIN image twice. X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/3a451f73d21763436b1cb948800c9b510e854c3a Don't fetch same ASIN image twice. This is all working again, even multi-artist records. --- diff --git a/fa-rip b/fa-rip index ac35bae..be1d5ca 100755 --- 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: