Release_type from browse_release_groups not filtering as expected

I have this line of code:
releaseGroup_list = mbz.search_release_groups(arid=artistId, release_type=‘album’, limit=100).get(‘release-group-list’)

I expected that to return only release groups of Type = “Album”, but that’s not what’s happening. It is fetching release groups of type compilations, live, etc as well.

  • I’d really like to bring the data already filtered, instead of bringing everything and then filtering on my side.

Am I doing something wrong? Do I need to do something else in order for the filter to work?

Thank you

What library and language are you using?

@jesus2099 ty for asking. It’s the musicbrainzngs in Python.

1 Like