Skip to content

Commit

Permalink
Try to detect duplicate ISRCs
Browse files Browse the repository at this point in the history
  • Loading branch information
mineo committed Aug 16, 2011
1 parent b0349e0 commit c1e90aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion isrcsubmit-cdrdao.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ def main():
if len(tracks2isrcs) == 0:
print "No new ISRCs could be found."
else:

vals = tracks2isrcs.values()
for key, val in tracks2isrcs.items():
if vals().count(val) > 1:
"The ISRC %s appears multiple times, I'm not going to submit it"\
% val
tracks2isrcs.pop(key)
print "The ISRC %s will be attached to %s" % (val, key)
if raw_input("Is this correct? [y/N]").lower() != "y":
tracks2isrcs.pop(key)
Expand Down

0 comments on commit c1e90aa

Please sign in to comment.