Permalink
Browse files

Merge branch 'single_isrcs'

see pull-request #67
  • Loading branch information...
2 parents 78136c8 + 332bab1 commit cc23aa1643556c0a93f9b5b3e82d9f29c3aa4049 @JonnyJD committed Jun 14, 2013
Showing with 4 additions and 1 deletion.
  1. +1 −0 README.md
  2. +3 −1 isrcsubmit.py
View
1 README.md
@@ -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.
View
4 isrcsubmit.py
@@ -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:

0 comments on commit cc23aa1

Please sign in to comment.