Skip to content

Commit

Permalink
don't submit single isrcs as list
Browse files Browse the repository at this point in the history
This is broken in python-musicbrainz-ngs 0.4,
see alastair/python-musicbrainzngs#113
The workaround doesn't work with pymbngs 0.3.
  • Loading branch information
JonnyJD committed Jun 13, 2013
1 parent 78136c8 commit 1a64838
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion isrcsubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ def check_isrcs_local(backend_output, mb_tracks):
isrcs[isrc].add_track(own_track)
# check if the ISRC was already added to the track
if isrc not in own_track.get("isrc-list", []):
tracks2isrcs[own_track["id"]] = [isrc]
# single isrcs work in python-musicbrainzngs 0.4, but not 0.3
# lists of isrcs don't work in 0.4 though, see pymbngs #113
tracks2isrcs[own_track["id"]] = isrc
print("found new ISRC for track %d: %s"
% (track_number, isrc))
else:
Expand Down

0 comments on commit 1a64838

Please sign in to comment.