# Soundtrack sorting

**URL:** <https://discourse.beets.io/t/soundtrack-sorting/2157>\
**Category:** Help\
**Created:** [September 11, 2022, 7:07pm UTC](https://discourse.beets.io/t/soundtrack-sorting/2157 "2022-09-11T19:07:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shredder\_guitarist](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@shredder\_guitarist](https://discourse.beets.io/u/shredder_guitarist)\
**Post date:** [September 11, 2022, 7:07pm UTC](https://discourse.beets.io/t/soundtrack-sorting/2157/1 "2022-09-11T19:07:43Z")

</div>

I’m wanting to do some additional sorting on my soundtracks and was having some trouble with the logic or how to go about doing that. I have a sound track folder that dumps anything that is marked as “albumtype: soundtrack” Beyond that, I am wanting to make either a seperate directory or subdirectory for video game soundtracks …possibly movie soundtracks.  
How would i go about doing this? I imagine that i am going to have to manually enforce a “tag” of some sort that beats would know to move the soundtrack to the video game soundtrack directory…just not sure where to put it.

_update_ for now, I’ve manually sorted my video game soundtracks to Soundtracks\>Video game soundtracks. The entire purpose of this was to be able to create a playlist inside of kodi based on Path so that i can have a randomized playlist specifically for video games. I consider this to be a workaround at the moment, because i believe this breaks the db relationship with albums inside of beets. If I’m wrong, and it doesn’t break the db relationship inside of beets, then i’m happy to just move video game soundtracks from ‘soundtracks’ to the ’ video game soundtracks’ sub-dir.

---

<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:** [September 12, 2022, 3:03pm UTC](https://discourse.beets.io/t/soundtrack-sorting/2157/2 "2022-09-12T15:03:48Z")

</div>

Absolutely; you can use a flexible attribute for that!  
[https://beets.readthedocs.io/en/stable/guides/advanced.html#store-any-data-you-like](https://beets.readthedocs.io/en/stable/guides/advanced.html#store-any-data-you-like)

For example, consider something like `beet modify -a kind=game`, and then use `kind:game` as a path query in your config.

---

<div class="post-metadata">

**Author:** ![shredder\_guitarist](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@shredder\_guitarist](https://discourse.beets.io/u/shredder_guitarist)\
**Post date:** [September 22, 2022, 11:41pm UTC](https://discourse.beets.io/t/soundtrack-sorting/2157/3 "2022-09-22T23:41:49Z")

</div>

thanks for your suggestion, I was able to get it done with this. For anyone reading this, a future fyi is that the new tag MUST be ‘lowercase’, I struggled with this for a bit and found that to be my issue to finally getting it all to work
