# Mopidy doesn't recognize my files

**URL:** <https://discourse.mopidy.com/t/mopidy-doesnt-recognize-my-files/1324>\
**Category:** Misc\
**Created:** [August 24, 2016, 8:23am UTC](https://discourse.mopidy.com/t/mopidy-doesnt-recognize-my-files/1324 "2016-08-24T08:23:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_Bordes](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/arnaud_bordes/32/858_2.png) [@Arnaud\_Bordes](https://discourse.mopidy.com/u/Arnaud_Bordes)\
**Post date:** [August 24, 2016, 8:23am UTC](https://discourse.mopidy.com/t/mopidy-doesnt-recognize-my-files/1324/1 "2016-08-24T08:23:05Z")

</div>

Hello,

I have this in my mopidy conf file :

[file]  
enabled = true  
media\_dirs = /home/arnauld/Desktop/musique  
$XDG\_MUSIC\_DIR|Music  
~/|Home  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

It used to work, but today it doesn’t work anymore. I can’t navigate and add files from the music directory specified above.

I also get errors when launching mopidy :

WARNING /home/arnauld/.config/mopidy/mopidy.conf has errors, line 89, 90, 116 has been ignored.

Lines 89 & 90 are :

$XDG\_MUSIC\_DIR|Music  
~/|Home

Line 116 is :

spotify\_tunigo/enabled

Thank you for any help,

screenshot and my full mopidy conf :

[http://hpics.li/59ab312](http://hpics.li/59ab312)  
[http://www.cjoint.com/c/FHyivvDAvQu](http://www.cjoint.com/c/FHyivvDAvQu)

Arnauld

---

<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:** [August 25, 2016, 12:20pm UTC](https://discourse.mopidy.com/t/mopidy-doesnt-recognize-my-files/1324/2 "2016-08-25T12:20:12Z")

</div>

Hi Arnauld,

`media_dirs` is a [List](https://docs.mopidy.com/en/latest/api/config/?highlight=config#mopidy.config.types.List) config setting and when using newline characters as item separators you must be sure to indent each line to indicate it’s part of the same config setting. For example, it should be:

```auto
[file]
media_dirs = /home/arnauld/Desktop/musique
  $XDG_MUSIC_DIR|Music
  ~/|Home

```

Rather than:

```auto
[file]
media_dirs = /home/arnauld/Desktop/musique
$XDG_MUSIC_DIR|Music
~/|Home

```

You’ll notice this in all the [examples in the docs](https://docs.mopidy.com/en/latest/config/) and the other list config settings you have in your mopidy.conf. _However_, it’s not specified anywhere in the Mopidy documentation so although this issue doesn’t seem to come up much (ever?) maybe we could be clearer?

Alternatively you could instead use comma separated items, for example:

```auto
[file]
media_dirs = /home/arnauld/Desktop/musique, $XDG_MUSIC_DIR|Music, ~/|Home

```

`spotify_tunigo/enabled` is not valid syntax, it’s used throughout the Mopidy docs as a shorthand way to specify the `enabled` setting for the `spotify_tunigo` section i.e. the following:

```auto
[spotify_tunigo]
enabled = true

```

You don’t even need this line in your mopidy.conf since extensions are usually enabled by default. The [documentation](https://docs.mopidy.com/en/latest/config/) actually recommends you omit config settings where you want the default value:

> If you want to keep the default for a config value, you should not add it to the config file, but leave it out so that when we change the default value in a future version, you won’t have to change your configuration accordingly.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Bordes](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/arnaud_bordes/32/858_2.png) [@Arnaud\_Bordes](https://discourse.mopidy.com/u/Arnaud_Bordes)\
**Post date:** [August 25, 2016, 1:57pm UTC](https://discourse.mopidy.com/t/mopidy-doesnt-recognize-my-files/1324/3 "2016-08-25T13:57:53Z")

</div>

Hello,

thank you kingosticks for these detailed explanations.

Arnauld
