def getReleaseGroup(rgid):
 releaseGroup = None
 try:
  with mb_lock:
   releaseGroup = musicbrainzngs.get_release_group_by_id(rgid, ['artists', 'releases', 'media', 'discids'])
   releaseGroup = releaseGroup['release-group']
 except musicbrainzngs.WebServiceError as e:
  logger.warn(('Attempt to retrieve information from MusicBrainz for release group "%s" failed (%s)' % (rgid, str(e))))
  mb_lock.snooze(5)
 if (not releaseGroup):
  return False
 else:
  return releaseGroup['release-list']

def getReleaseGroup ( rgid ) : releaseGroup = None try : with mb_lock : releaseGroup = musicbrainzngs . get_release_group_by_id ( rgid , [ 'artists' , 'releases' , 'media' , 'discids' ] ) releaseGroup = releaseGroup [ 'release-group' ] except musicbrainzngs . WebServiceError as e : logger . warn ( ( 'Attempt to retrieve information from MusicBrainz for release group "%s" failed (%s)' % ( rgid , str ( e ) ) ) ) mb_lock . snooze ( 5 ) if ( not releaseGroup ) : return False else : return releaseGroup [ 'release-list' ]
returns a list of releases in a release group .