# Play Album \<feature request\>

**URL:** <https://discourse.mopidy.com/t/play-album-feature-request/224>\
**Category:** Misc\
**Created:** [October 1, 2014, 6:32pm UTC](https://discourse.mopidy.com/t/play-album-feature-request/224 "2014-10-01T18:32:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawdlite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/rawdlite/32/764_2.png) [@rawdlite](https://discourse.mopidy.com/u/rawdlite)\
**Post date:** [October 1, 2014, 6:32pm UTC](https://discourse.mopidy.com/t/play-album-feature-request/224/1 "2014-10-01T18:32:37Z")

</div>

I would like to be able to pass a directory containing audiofiles to mopidy via the mpd protocol.  
Pretty much like what i can already do with the moc player:

```
beet list -f '$path' -a genre:blues John Lee Hooker | xargs -n 1 mocp -a 

```

i would like to do with my new favourite player mopidy.  
A prefix of local:album: for such a directory path seems like an obvious choice.  
Ultimately i would like

```
 mpc add local:album:/<directory path> 

```

to add recursively all audiofiles found in the library.  
Is this feasible or is the format of the json library not adequate for such an approach?

cheers  
tom

---

<div class="post-metadata">

**Author:** ![Toon\_Fiets](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@Toon\_Fiets](https://discourse.mopidy.com/u/Toon_Fiets)\
**Post date:** [October 5, 2014, 12:56pm UTC](https://discourse.mopidy.com/t/play-album-feature-request/224/2 "2014-10-05T12:56:05Z")

</div>

Very nice approach to do this, playing an entire directory (album) would be usefull !!

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [October 5, 2014, 3:58pm UTC](https://discourse.mopidy.com/t/play-album-feature-request/224/3 "2014-10-05T15:58:31Z")

</div>

Like you can do with `mpc ls "Local media/<directory path>" | mpc add` ?

---

<div class="post-metadata">

**Author:** ![rawdlite](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/rawdlite/32/764_2.png) [@rawdlite](https://discourse.mopidy.com/u/rawdlite)\
**Post date:** [October 6, 2014, 9:57am UTC](https://discourse.mopidy.com/t/play-album-feature-request/224/4 "2014-10-06T09:57:42Z")

</div>

You are right that works.  
Thanks for mentioning it.
