New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError with DiscID "Rl7E4c2SbxEwLh9gwYX57V6pR6I-" (stubs) #23
Comments
I can verify this with setting the discID to this value (with any disc in the drive):
I can also verify the problem with isrcsubmit 0.4 (setting discID to this id). It looks like a problem in the python-musicbrainz2 library. This would be bad, because python-musicbrainz2 is deprecated and might not receive bugfixes. The "-" at the end of the id doesn't seem to be the problem. That is quite common and i tested another disc with such an id. |
Looking it up (via Picard) shows that the release has a stub. Perhaps this is what is throwing things off? (E.g., it's finding a (stub) release but no releaseId?) |
Oh, didn't see your comment. :) |
The problem in python-musicbrainz2 is, that the musicbrainz id (!= disc id) is "None". Possibly because this is a stub. Bare test for pymb2: #!/usr/bin/env python2
from musicbrainz2.webservice import Query, WebService, ReleaseFilter
agent = "isrcsubmit-test"
ws = WebService(userAgent=agent)
q = Query(ws, clientId=agent)
discId_filter = ReleaseFilter(discId="Rl7E4c2SbxEwLh9gwYX57V6pR6I-")
# working id
#discId_filter = ReleaseFilter(discId="KvJdT.MxfPnKhhaa8STa2MhBoWk-")
results = q.getReleases(filter=discId_filter)
release = results[0].release
print release.getArtist().getName(),
print "-", release.getTitle(),
#print "(" + release.getTypes()[1].rpartition('#')[2] + ")"
print "(" + ", ".join(release.getTypes()) + ")"
print "id: ", release.getId()
# this is the part that will error out
results = q.getReleaseById(release.getId()) |
Oh boy.. |
Stubs are now ignored (since they are no "real" musicbrainz releases), but I show some information about the stub with d8f8c3c. Thanks for the report. |
Getting TypeError with DiscID "Rl7E4c2SbxEwLh9gwYX57V6pR6I-":
The text was updated successfully, but these errors were encountered: