# Genre whitelist

**URL:** <https://community.metabrainz.org/t/genre-whitelist/428576>\
**Category:** MusicBrainz Picard\
**Tags:** feature-request, genres\
**Created:** [May 18, 2019, 9:53am UTC](https://community.metabrainz.org/t/genre-whitelist/428576 "2019-05-18T09:53:52Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Zas](https://community.metabrainz.org/user_avatar/community.metabrainz.org/zas/32/28_2.png) [@Zas](https://community.metabrainz.org/u/Zas)\
**Post date:** [May 25, 2019, 12:17pm UTC](https://community.metabrainz.org/t/genre-whitelist/428576/11 "2019-05-25T12:17:02Z")

</div>

Instead of using a white list and an ignore list, i’d rather have one config option for both:

Strict matching:

```
+rock
-disco

```

Wildcards:

```
+*jazz*
-*

```

In this case, it would accept any genre containing `jazz`, ignore anything else.

Or:

```
 -*jazz*
 +*

```

Which would be equivalent to:

```
-*jazz*

```

Meaning: allow everything, but ignore genres containing `jazz`.

It could even support regexps:

```
+/^jazz/
-/^.*disco$/

```

Not sure whether it should be a separate file or just a normal option stored in usual config ini (perhaps with possibility to import/export to text file).

If the idea is to filter out tags/genres that are embedded into files, it has to allow whatever user wants, and cover as much cases as possible.

The current option `ignore_genres`, in this regard, was badly designed.

Code: [https://github.com/metabrainz/picard/blob/81bc3697532f23dc879de7bb051e854b06fac8d1/picard/track.py#L208-L254](https://github.com/metabrainz/picard/blob/81bc3697532f23dc879de7bb051e854b06fac8d1/picard/track.py#L208-L254)

@ZoeB: please create a ticket for this if none exists already and link it here.

---

_[View the full topic](https://community.metabrainz.org/t/genre-whitelist/428576)._
