# MB release blacklist

**URL:** <https://discourse.beets.io/t/mb-release-blacklist/1703>\
**Category:** Help\
**Created:** [February 21, 2021, 5:09pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703 "2021-02-21T17:09:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadl40](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/nadl40/32/522_2.png) [@nadl40](https://discourse.beets.io/u/nadl40)\
**Post date:** [February 21, 2021, 5:09pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/1 "2021-02-21T17:09:36Z")

</div>

I’m tagging my extensive J.S. Bach collection and frequently beets pulls in a huge Complete Bach Release  
[https://musicbrainz.org/release/d996abaa-ce14-45c7-944a-9c62adee19fe](https://musicbrainz.org/release/d996abaa-ce14-45c7-944a-9c62adee19fe)

I have standalone recordings that were aggregated into this release but I do not have the whole box. This release gets eventually eliminated, but it does take time.

What I’m looking for is a blacklist to ensure that beets does not consider this release, an opposite of --search-id. Does such a flag exists ? Or is there perhaps a trick that will accomplish the same ?

As an alternative, what would be the best spot to hard code exception in the source code ? I can manage basic python.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 22, 2021, 12:26pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/2 "2021-02-22T12:26:40Z")

</div>

I don’t think we currently have such a thing. I think the place to “filter out” matches, if you want to get your hands dirty, would be the `beets.autotag.hooks` module, which is where data sources are all aggregated—so it might be possible to hack in a check for a given ID.

---

<div class="post-metadata">

**Author:** ![nadl40](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/nadl40/32/522_2.png) [@nadl40](https://discourse.beets.io/u/nadl40)\
**Post date:** [February 22, 2021, 1:59pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/3 "2021-02-22T13:59:18Z")

</div>

Thanks, will try and report back.

---

<div class="post-metadata">

**Author:** ![nadl40](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/nadl40/32/522_2.png) [@nadl40](https://discourse.beets.io/u/nadl40)\
**Post date:** [February 24, 2021, 11:36pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/4 "2021-02-24T23:36:15Z")

</div>

It did not work for me in

> beets.autotag.hooks.

This change is crude, but it works. Change made to autotag/mb.py

> def album\_for\_id(releaseid):  
> “”“Fetches an album by its MusicBrainz ID and returns an AlbumInfo  
> object or None if the album is not found. May raise a  
> MusicBrainzAPIError.  
> “””  
> log.debug(u’Requesting MusicBrainz release {}', releaseid)  
> albumid = \_parse\_id(releaseid)
> 
> ```
> # nadl40 start
> if albumid == 'd996abaa-ce14-45c7-944a-9c62adee19fe':
> log.debug(u'---------------> nadl40 blacklist albumid {}', albumid)
> albumid = ""
> # nadl40 end
> 
> if not albumid:
> log.debug(u'Invalid MBID ({0}).', releaseid)
> return
> try:
> res = musicbrainzngs.get_release_by_id(albumid,
> RELEASE_INCLUDES)
> except musicbrainzngs.ResponseError:
> log.debug(u'Album ID match failed.')
> return None
> except musicbrainzngs.MusicBrainzError as exc:
> raise MusicBrainzAPIError(exc, u'get release by ID', albumid,
> traceback.format_exc())
> return album_info(res['release'])
> 
> ```

Is there a chance to have a new option in config for the new release ?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [February 24, 2021, 11:48pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/5 "2021-02-24T23:48:45Z")

</div>

Great! It’s a pretty specialized thing, but if you have the bandwidth to turn it into a complete pull request, we can certainly at least consider adding it.

---

<div class="post-metadata">

**Author:** ![nadl40](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/nadl40/32/522_2.png) [@nadl40](https://discourse.beets.io/u/nadl40)\
**Post date:** [February 24, 2021, 11:50pm UTC](https://discourse.beets.io/t/mb-release-blacklist/1703/6 "2021-02-24T23:50:29Z")

</div>

Not sure I understand. Just to open a ticket ? For a while I thought you were asking me to make a change  
🙂

I could do that, in Classical world boxes are getting bigger and bigger and they do not contain much new material, its all repackaging so I can make a decent case. How do I open a ticket ?
