# How to have multiple path formats?

**URL:** https://discourse.beets.io/t/how-to-have-multiple-path-formats/1966
**Category:** Help
**Created:** [December 23, 2021, 8:13pm UTC](https://discourse.beets.io/t/how-to-have-multiple-path-formats/1966 "2021-12-23T20:13:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![will5023](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@will5023](https://discourse.beets.io/u/will5023)
#### Post date: [December 23, 2021, 8:13pm UTC](https://discourse.beets.io/t/how-to-have-multiple-path-formats/1966/1 "2021-12-23T20:13:21Z")

</div>

Hey, I’m not sure if this is covered somewhere and I just can’t find it, but is there a way to specify path formats per artist? I’d like for a couple of the artists in my library to have “original release date” as part of the path format. Thanks.

I think I answered my own question, but does this look like it would achieve my goal?

```auto
paths:
    default: $albumartist/$album%aunique{}/$disc-$track $title
    singleton: Non-Album/$artist/$title
    comp: Compilations/$album%aunique{}/$disc-$track $title
    albumtype:soundtrack: Soundtracks/$album/$disc-$track $title
    albumartist:Grateful Dead: $albumartist/$original_year-$original_month-$original_day/$album%aunique{}/$disc-$track $title

```

---

<div class="post-metadata">

### Author: ![ctrueden](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/ctrueden/32/475_2.png) [@ctrueden](https://discourse.beets.io/u/ctrueden)
#### Post date: [December 28, 2021, 2:14am UTC](https://discourse.beets.io/t/how-to-have-multiple-path-formats/1966/2 "2021-12-28T02:14:30Z")

</div>

@will5023 I believe that will work. But I personally encountered mixed success when setting up my paths for specific album types, specific artists, etc. I ended up wanting something more powerful, so I used the [inline plugin](https://beets.readthedocs.io/en/stable/plugins/inline.html) to define my own album and item fields using Python code. Here is the relevant part of my `config.yaml`:

> <https://github.com/ctrueden/beets-config/blob/bf04641503ff191add5b9a9007b2db631d02569b/config/config.yaml#L129-L155>

And then the corresponding Python source code:

> <https://github.com/ctrueden/beets-config/blob/bf04641503ff191add5b9a9007b2db631d02569b/ctrpaths.py>

You may not need something this complicated, but I just wanted to show it here so that you (and others) know that you have the power of Python, should you need it! 🦸
