rlhelinski / musicbrainz-catalog

Python code for cataloging your music collection cross-referenced with MusicBrainz
GNU General Public License v2.0
2 stars 0 forks source link

Error when only a CD stub is present #66

Closed rlhelinski closed 9 years ago

rlhelinski commented 9 years ago

Output:

INFO:mbcat:Disc submission URL: http://musicbrainz.org/cdtoc/attach?id=a62wNov9DIlGBkIIV9aEHpy6C2A-&tracks=15&toc=1+15+312238+150+19864+43896+63749+81542+102407+120368+140570+163468+187465+206395+230520+249783+270230+288510 INFO:mbcat:Querying MusicBrainz for DiscID 'a62wNov9DIlGBkIIV9aEHpy6C2A-'... INFO:musicbrainzngs:in ws2:cdstub, uncaught {'cdstub': {'title': 'The Very Best of Jeff Lorber', 'barcode': '4400650752', 'track-list': [{'length': '262853', 'track_or_recording_length': '262853', 'title': 'Grasshopper'}, {'length': '320426', 'track_or_recording_length': '320426', 'title': 'Igaussu Falls'}, {'length': '264706', 'track_or_recording_length': '264706', 'title': 'Reverend Green'}, {'length': '237240', 'track_or_recording_length': '237240', 'title': 'Bring It On'}, {'length': '278200', 'track_or_recording_length': '278200', 'title': 'Katherine'}, {'length': '239480', 'track_or_recording_length': '239480', 'title': 'Chopsticks'}, {'length': '269360', 'track_or_recording_length': '269360', 'title': 'Yellowstone'}, {'length': '305306', 'track_or_recording_length': '305306', 'title': 'Punta Del Este'}, {'length': '319960', 'track_or_recording_length': '319960', 'title': 'Lost With You'}, {'length': '252400', 'track_or_recording_length': '252400', 'title': 'PCH (Pacific Coast Highway)'}, {'length': '321666', 'track_or_recording_length': '321666', 'title': 'Rain Song'}, {'length': '256839', 'track_or_recording_length': '256839', 'title': 'Say Love'}, {'length': '272626', 'track_or_recording_length': '272626', 'title': 'Point Venus'}, {'length': '243733', 'track_or_recording_length': '243733', 'title': 'State Of Grace'}, {'length': '316373', 'track_or_recording_length': '316373', 'title': 'Do What It Takes'}], 'id': 'a62wNov9DIlGBkIIV9aEHpy6C2A-', 'artist': 'Jeff Lorber'}} Traceback (most recent call last): File "mbcat-gtk.py", line 2901, in readDiscTOC if key in self.result['cdstub']: AttributeError: MBCatGtk instance has no attribute 'result'