# Can I have multiple sources for media\_dir in mopidy.conf?

**URL:** <https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334>\
**Category:** Misc\
**Created:** [September 23, 2020, 12:56pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334 "2020-09-23T12:56:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiker\_LT](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/hiker_lt/32/1716_2.png) [@Hiker\_LT](https://discourse.mopidy.com/u/Hiker_LT)\
**Post date:** [September 23, 2020, 12:56pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334/1 "2020-09-23T12:56:25Z")

</div>

Is it possible to have more than one source of music files ?

sudo nano /etc/mopidy/mopidy.conf

[local]  
media\_dir = /home/pi/Music

Here I want to also include an additional source:

/media/pi/Seagate Expansion Drive/Music

Is this possible, and what is the syntax of the command to do this ?

Thanks !

---

<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:** [September 23, 2020, 1:33pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334/2 "2020-09-23T13:33:31Z")

</div>

You can only have one `media_dir` but you can point to other directories from it using symbolic links. Be sure to also enable the `scan_follow_symlinks` setting in your Mopidy config i.e.

```auto
ln -s "/media/pi/Seagate Expansion Drive/Music" /home/pi/Music/Seagate

```

With Mopidy config:

```auto
[local]
media_dir = /home/pi/Music
can_follow_symlinks = True

```

You might prefer to point `media_dir` to some other directory which just contains symlinks to your various sources e.g. `media_dir = /somewhere/all_my_music` and then

```auto
ln -s "/media/pi/Seagate Expansion Drive/Music" /somewhere/all_my_music/Seagate
ln -s /home/pi/Music /somewhere/all_my_music/Home

```

---

<div class="post-metadata">

**Author:** ![Hiker\_LT](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/hiker_lt/32/1716_2.png) [@Hiker\_LT](https://discourse.mopidy.com/u/Hiker_LT)\
**Post date:** [September 23, 2020, 3:20pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334/3 "2020-09-23T15:20:25Z")

</div>

Thanks for the help.  
Forgive my questions, but here is result , not sure what I’m doing wrong.  
Created the file structure and added to the Mopidy config.

then tried to restart Mopidy, error message now says service does not exist.

Run “sudo mopidyctl local scan”  
result:  
pi@raspberrypi:~ sudo mopidyctl local scan Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan" as user mopidy INFO [MainThread] mopidy.\_\_main\_\_ Starting Mopidy 3.0.2 INFO [MainThread] mopidy.config Loading config from builtin defaults INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf INFO [MainThread] mopidy.config Loading config from command line options INFO [MainThread] mopidy.\_\_main\_\_ Enabled extensions: tunein, http, iris, file, stream, internetarchive, softwaremixer, somafm, m3u INFO [MainThread] mopidy.\_\_main\_\_ Disabled extensions: local WARNING [MainThread] mopidy.\_\_main\_\_ Found local configuration errors. The extension has been automatically disabled: WARNING [MainThread] mopidy.\_\_main\_\_ local/can\_follow\_symlinks unknown config key. Did you mean 'scan\_follow\_symlinks'? WARNING [MainThread] mopidy.\_\_main\_\_ Please fix the extension configuration errors or disable the extensions to silence these messages. ERROR [MainThread] mopidy.\_\_main\_\_ Unable to run command provided by disabled extension local pi@raspberrypi:~   
pi@raspberrypi:~ pi@raspberrypi:~ sudo nano /etc/mopidy/mopidy.conf  
pi@raspberrypi:~ $ sudo mopidyctl config  
Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config” as user mopidy  
[core]  
cache\_dir = /var/cache/mopidy  
config\_dir = /etc/mopidy  
data\_dir = /var/lib/mopidy  
max\_tracklist\_length = 10000  
restore\_state = false

[logging]  
verbosity = 0  
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s  
color = false  
config\_file =

[audio]  
mixer = software  
mixer\_volume =  
output = alsasink  
buffer\_time =

[proxy]  
scheme =  
hostname =  
port =  
username =  
password =

[somafm]  
enabled = true  
encoding = mp3  
quality = fast  
dj\_as\_artist = true

[local]  
enabled = false ; Extension disabled due to config errors.  
media\_dir = /home/pi/Music  
scan\_timeout = 1000  
scan\_flush\_threshold = 100  
scan\_follow\_symlinks = false  
included\_file\_extensions =  
excluded\_file\_extensions =  
.cue  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.pdf  
.png  
.txt  
.zip  
directories =  
Albums local:directory?type=album  
Artists local:directory?type=artist  
Composers local:directory?type=artist&role=composer  
Genres local:directory?type=genre  
Performers local:directory?type=artist&role=performer  
Release Years local:directory?type=date&format=%25Y  
Tracks local:directory?type=track  
Last Week’s Updates local:directory?max-age=604800  
Last Month’s Updates local:directory?max-age=2592000  
timeout = 10  
use\_artist\_sortname = false  
album\_art\_files =  
\*.jpg  
\*.jpeg  
\*.png

[iris]  
enabled = true  
country = NZ  
locale = en\_NZ  
spotify\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_spotify.php](https://jamesbarnsley.co.nz/iris/auth_spotify.php)  
lastfm\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_lastfm.php](https://jamesbarnsley.co.nz/iris/auth_lastfm.php)  
genius\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_genius.php](https://jamesbarnsley.co.nz/iris/auth_genius.php)  
data\_dir = $XDG\_DATA\_DIR/iris

[internetarchive]  
enabled = true  
base\_url = [http://archive.org](http://archive.org)  
collections =  
audio  
etree  
librivoxaudio  
audio\_bookspoetry  
audio\_tech  
audio\_music  
audio\_news  
audio\_foreign  
audio\_podcast  
audio\_religion  
audio\_formats =  
VBR MP3  
64Kbps MP3  
image\_formats =  
JPEG  
JPEG Thumb  
browse\_limit = 100  
browse\_views =  
downloads desc|Views  
titleSorter asc|Title  
publicdate desc|Date Archived  
date desc|Date Published  
creatorSorter asc|Creator  
search\_limit = 20  
search\_order =  
cache\_size = 128  
cache\_ttl = 86400  
retries = 3  
timeout = 10

[file]  
enabled = true  
media\_dirs =  
$XDG\_MUSIC\_DIR|Music  
~/|Home  
excluded\_file\_extensions =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.pdf  
.png  
.txt  
.zip  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

[http]  
enabled = true  
hostname = 0.0.0.0  
port = 6680  
zeroconf = Mopidy HTTP server on $hostname  
allowed\_origins =  
csrf\_protection = true  
default\_app = mopidy

[m3u]  
enabled = true  
base\_dir =  
default\_encoding = latin-1  
default\_extension = .m3u8  
playlists\_dir =

[softwaremixer]  
enabled = true

[stream]  
enabled = true  
protocols =  
http  
https  
mms  
rtmp  
rtmps  
rtsp  
metadata\_blacklist =  
timeout = 5000

[tunein]  
enabled = true  
timeout = 5000  
filter =  
pi@raspberrypi:~ $ sudo systemctl enable Mopidy  
Failed to enable unit: Unit file Mopidy.service does not exist.

---

<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:** [September 23, 2020, 3:55pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334/4 "2020-09-23T15:55:20Z")

</div>

This was my copy and paste typo but the problem and solution are right there:

```auto
WARNING [MainThread] mopidy. __main__ Found local configuration errors. The extension has been automatically disabled:
WARNING [MainThread] mopidy. __main__ local/can_follow_symlinks unknown config key. Did you mean 'scan_follow_symlinks'?
WARNING [MainThread] mopidy. __main__ Please fix the extension configuration errors or disable the extensions to silence these messages.
ERROR [MainThread] mopidy. __main__ Unable to run command provided by disabled extension local

```

Use

```auto
[local]
media_dir = /home/pi/Music
scan_follow_symlinks = True

```

---

<div class="post-metadata">

**Author:** ![Hiker\_LT](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/hiker_lt/32/1716_2.png) [@Hiker\_LT](https://discourse.mopidy.com/u/Hiker_LT)\
**Post date:** [September 23, 2020, 4:00pm UTC](https://discourse.mopidy.com/t/can-i-have-multiple-sources-for-media-dir-in-mopidy-conf/4334/5 "2020-09-23T16:00:42Z")

</div>

THANK YOU !!!- excellent help and advice , I appreciate it !
