Skip to content

Commit

Permalink
close #5, give release events on multiple match
Browse files Browse the repository at this point in the history
In NGS there is a different release for each relase-event.
So quite often you have multiple matches for a discId with the exact
same title and type.
Having the release event also displayed for every match should help.
  • Loading branch information
JonnyJD committed Feb 6, 2012
1 parent a4f2bc0 commit 79494b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ def printError(*args):
print str(i)+":", release.getArtist().getName(),
print "-", release.getTitle(),
print "(" + release.getTypes()[1].rpartition('#')[2] + ")"
events = release.getReleaseEvents()
for event in events:
country = (event.getCountry() or "").ljust(2)
date = (event.getDate() or "").ljust(10)
barcode = (event.getBarcode() or "").rjust(13)
print "\t", country, "\t", date, "\t", barcode
num = raw_input("Which one do you want? [0-%d] " % i)
result = results[int(num)]
else:
Expand Down

0 comments on commit 79494b6

Please sign in to comment.