# Using own tags of Musicbrainz database + setting per\_disc\_numbering depending on genre?

**URL:** <https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259>\
**Category:** Help\
**Created:** [May 6, 2020, 12:10pm UTC](https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259 "2020-05-06T12:10:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![untiefe](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@untiefe](https://discourse.beets.io/u/untiefe)\
**Post date:** [May 6, 2020, 12:10pm UTC](https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259/1 "2020-05-06T12:10:56Z")

</div>

Hello,

beets is a great tool, that I just discovered a week ago, but I already used it to rearrange my complete library.  
Most stuff I could solve by myself, but 2 questions remain for now, and I hope I’ll get some answers here:

1. Via Picard I’ll use my own genre tags, that I set on the musicbrainz website. Can I configure beets as well to use the genre tags from my personalized musicbrainz account? I found the musicbrainz plugin, which allows to manage your collection there, but didn’t see any option to use the personal genre tags…

2. I would like to set the per\_disc\_numbering option depending on the genre tag. I tried it with the inline plugin, but it doesn’t seem to work. Do you have an idea how to make it work

here you see the inline code, I tried in my config.yaml:

album\_fields:  
per\_disc\_numbering: |  
if genre == “Kinder”:  
my\_per\_disc\_numbering = no  
else:  
my\_per\_disc\_numbering = yes  
return my\_per\_disc\_numbering

Thanks for any hints.

Best regards,

Michael

---

<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:** [May 6, 2020, 12:30pm UTC](https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259/2 "2020-05-06T12:30:04Z")

</div>

Hello, and welcome to beets!

Unfortunately, I don’t think either of these is currently possible.

1. I’m actually not familiar with the concept of “personal” genre tags on MusicBrainz. Can you link to more information about them, and perhaps to where they are exposed in the MusicBrainz API?
2. `per_disc_numebering` is a global flag, so it can’t be changed for individual albums.

Sorry for the disappointment!

---

<div class="post-metadata">

**Author:** ![untiefe](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@untiefe](https://discourse.beets.io/u/untiefe)\
**Post date:** [May 6, 2020, 12:36pm UTC](https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259/3 "2020-05-06T12:36:42Z")

</div>

Thanks for the veeery quick answers.

At least I looked thoroughly and couldn’t find answer to my issues. Maybe I have to code a plugin myself 😉

A documentation about the genre tags can be found here:

[https://musicbrainz.org/doc/Genre](https://musicbrainz.org/doc/Genre)

This is a great feature I already use for years.

The per\_disc\_numbering would be great to change for Audiobooks, but then I’ll have to set it manually. Is it possible to do it on commandline?

Thanks again.  
Michael

---

<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:** [May 7, 2020, 1:41am UTC](https://discourse.beets.io/t/using-own-tags-of-musicbrainz-database-setting-per-disc-numbering-depending-on-genre/1259/4 "2020-05-07T01:41:24Z")

</div>

One option would be to have a second config file that _just_ contains hat option. You can then use the `-c` flag to add that configuration file when you’re importing audiobooks.
