Skip to content

Commit

Permalink
Merge branch 'single_isrcs'
Browse files Browse the repository at this point in the history
see pull-request #67
  • Loading branch information
JonnyJD committed Jun 14, 2013
2 parents 78136c8 + 332bab1 commit cc23aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and submits them to [MusicBrainz](http://musicbrainz.org).

This script uses
[python-musicbrainzngs](http://musicbrainz.org/doc/python-musicbrainz-ngs)
>= 0.4
to access the MusicBrainz API
and [python-discid](https://python-discid.readthedocs.org/) >= 0.5.0
to create an identifier for the disc.
Expand Down
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 cc23aa1

Please sign in to comment.