mopidy-convert-config command

Synopsis

mopidy-convert-config

Description

Mopidy is a music server which can play music both from multiple sources, like your local hard drive, radio streams, and from Spotify and SoundCloud. Searches combines results from all music sources, and you can mix tracks from all sources in your play queue. Your playlists from Spotify or SoundCloud are also available for use.

The mopidy-convert-config command is used to convert settings.py configuration files used by mopidy < 0.14 to the mopidy.conf config file used by mopidy >= 0.14.

Options

This program does not take any options. It looks for the pre-0.14 settings file at $XDG_CONFIG_DIR/mopidy/settings.py, and if it exists it converts it and ouputs a Mopidy 0.14 compatible ini-format configuration. If you don’t already have a config file at $XDG_CONFIG_DIR/mopidy/mopidy.conf`, you’re asked if you want to save the converted config to that file.

Example

Given the following contents in ~/.config/mopidy/settings.py:

LOCAL_MUSIC_PATH = u'~/music'
MPD_SERVER_HOSTNAME = u'::'
SPOTIFY_PASSWORD = u'secret'
SPOTIFY_USERNAME = u'alice'

Running mopidy-convert-config will convert the config and create a new mopidy.conf config file:

$ mopidy-convert-config
Checking /home/alice/.config/mopidy/settings.py
Converted config:

[spotify]
username = alice
password = ********

[mpd]
hostname = ::

[local]
media_dir = ~/music

Write new config to /home/alice/.config/mopidy/mopidy.conf? [yN] y
Done.

Contents of ~/.config/mopidy/mopidy.conf after the conversion:

[spotify]
username = alice
password = secret

[mpd]
hostname = ::

[local]
media_dir = ~/music

See also

mopidy(1)

Reporting bugs

Report bugs to Mopidy’s issue tracker at <https://github.com/mopidy/mopidy/issues>

Table Of Contents

Previous topic

mopidy command

Next topic

API reference

This Page