# Create playlists from NAS, which path to use?

**URL:** <https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019>\
**Category:** Pi MusicBox (archive)\
**Created:** [December 20, 2015, 2:28pm UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019 "2015-12-20T14:28:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![duvaljm](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@duvaljm](https://discourse.mopidy.com/u/duvaljm)\
**Post date:** [December 20, 2015, 2:28pm UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/1 "2015-12-20T14:28:55Z")

</div>

Hi,

I’m trying to create a playlists on pi musicbox, but can’t find the proper spelling.  
I created a \*\*.m3u file in the /var/lib/mopidy/playlist directory and it is seen and read by pi music box, however whichever the ‘spelling’ used (something like [//192.168.1.xx/music/folder/xx.mp3](https://192.168.1.xx/music/folder/xx.mp3)) using //192 or file://192 or whatever, the playlist is seen in pimusic box, the name of the audio file is visible, but the actual track is never found (or played).  
Can someone point me to an example of a m3u file that work using pi music box with the music stored on a NAS?

---

<div class="post-metadata">

**Author:** ![Tim\_Pointon](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Pointon](https://discourse.mopidy.com/u/Tim_Pointon)\
**Post date:** [December 21, 2015, 8:13am UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/2 "2015-12-21T08:13:48Z")

</div>

All I can offer in the way of help is some observations. I’m having similar issues.

Mopidy playlists seem to be stored at /var/lib/mopidy/playlists. When I add a title to a playlist, say LC, the entry gets added to a file named simply ‘LC’. If I rename LC to LC.m3u then I can see the added tracks.

This of course is no satisfactory workaround. Seems like a Mopidy or MPD bug to me.

---

<div class="post-metadata">

**Author:** ![Tim\_Pointon](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Pointon](https://discourse.mopidy.com/u/Tim_Pointon)\
**Post date:** [December 21, 2015, 8:25am UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/3 "2015-12-21T08:25:52Z")

</div>

To clarify, I use pimusicbox on a Raspberry pi. It includes mopidy at version 0.19.5

---

<div class="post-metadata">

**Author:** ![tot\_rispekt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tot_rispekt/32/1277_2.png) [@tot\_rispekt](https://discourse.mopidy.com/u/tot_rispekt)\
**Post date:** [December 21, 2015, 9:34am UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/4 "2015-12-21T09:34:29Z")

</div>

IIRC this is how I did it:

Since the samba or NAS share is mounted at /music/Network the OS sees those files as though they were local files in that directory. So use the format inside the .m3u:

```
/music/Network/song1.mp3
/music/Network/song2.mp3
```

---

<div class="post-metadata">

**Author:** ![duvaljm](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@duvaljm](https://discourse.mopidy.com/u/duvaljm)\
**Post date:** [December 22, 2015, 7:34pm UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/5 "2015-12-22T19:34:43Z")

</div>

Thanks a lot Tot. That’s exactly what I was looking for. I read that but  
did not get that by default in mopidy the samba was mounted as  
/music/Network. Also I read somewhere that files should start by  
file:/music… and as a matter of fact it works with or without the “file:”.  
Finally I was hoping to import full folder but that does not seem direct.  
Anyway problem solved!

---

<div class="post-metadata">

**Author:** ![tot\_rispekt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tot_rispekt/32/1277_2.png) [@tot\_rispekt](https://discourse.mopidy.com/u/tot_rispekt)\
**Post date:** [December 22, 2015, 7:39pm UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/6 "2015-12-22T19:39:20Z")

</div>

If you want to make a full folder into a m3u list, then do

`ls /music/Network/examplealbum > example.m3u`

on the command line and a file will appear with all the songs in the folder you give. Note that they might not be in the order you want, depending on how the files are named.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/create-playlists-from-nas-which-path-to-use/1019/7 "2026-02-19T11:47:34Z")

</div>


