# How to set album name in singletons

**URL:** https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302
**Category:** Help
**Created:** [March 21, 2023, 11:17am UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302 "2023-03-21T11:17:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kinu](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kinu](https://discourse.beets.io/u/kinu)
#### Post date: [March 21, 2023, 11:17am UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302/1 "2023-03-21T11:17:45Z")

</div>

Hello! I’m really enjoying my experience using beets (only a few days, but this is really huge!)

I’m trying to set the “album” field to the “title” of the song in my singletons, just for showing it in my main Navidrome album’s view.

this:

`beet modify album='$title' path:/mnt/storage/data/media/music/Non-Album/`

sets album to “$title” literally. If I use this

`beet modify album=$title path:/mnt/storage/data/media/music/Non-Album/`

`error: no modifications specified`

So, what am I doing wrong? What is the correct sintaxis to set my tracks titles as album titles too in singletons?

---

<div class="post-metadata">

### Author: ![jojo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jojo/32/709_2.png) [@jojo](https://discourse.beets.io/u/jojo)
#### Post date: [March 21, 2023, 3:47pm UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302/2 "2023-03-21T15:47:33Z")

</div>

Whenever you use $ on the shell, it will be interpreted by the shell itsefl. That’s one thing I notice here. Your second command can’t work in any case. That is for sure. So _if_ you would like to pass the $ character to beets, you would need to put it into single quotes (which you did in your first command)

About your first command I’m not sure if that is supposed to work either…maybe wait for somebody else for an answer 🙂 HTH

---

<div class="post-metadata">

### Author: ![jojo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jojo/32/709_2.png) [@jojo](https://discourse.beets.io/u/jojo)
#### Post date: [March 21, 2023, 3:54pm UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302/3 "2023-03-21T15:54:54Z")

</div>

The only idea I have is to script it using something like this as a basis:

`beet ls -f '$title' search terms` and then _somehow_ pass that to `beet modify` - but that sounds pretty complicated…

_or_ retag to singletons using Discogs with this new feature I’m working on at the moment. It writes album information: [Support providing album information on singleton imports by JOJ0 · Pull Request #4717 · beetbox/beets · GitHub](https://github.com/beetbox/beets/pull/4717)

---

<div class="post-metadata">

### Author: ![jackwilsdon](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jackwilsdon/32/10_2.png) [@jackwilsdon](https://discourse.beets.io/u/jackwilsdon)
#### Post date: [March 21, 2023, 6:18pm UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302/4 "2023-03-21T18:18:09Z")

</div>

You can do this using [formatted modify](https://github.com/beetbox/beets/issues/4543) (same syntax as your first command) but it’s only available in the source version of beets currently.

---

<div class="post-metadata">

### Author: ![kinu](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kinu](https://discourse.beets.io/u/kinu)
#### Post date: [March 22, 2023, 11:05am UTC](https://discourse.beets.io/t/how-to-set-album-name-in-singletons/2302/5 "2023-03-22T11:05:08Z")

</div>

Hello and thank you!

I’m in Archlinux, so I did `yay -S beets-git.`

And now it works doing just

`beet modify album='$title' path:/mnt/storage/data/media/music/Non-Album/`
