"""
Available settings and their default values.

.. warning::

    Do *not* change settings in ``mopidy/settings.py``. Instead, add a file
    called ``~/.mopidy/settings.py`` and redefine settings there.
"""

from __future__ import absolute_import
import os
import sys

#: List of playback backends to use. See :mod:`mopidy.backends` for all
#: available backends. Default::
#:
#:     BACKENDS = (u'mopidy.backends.despotify.DespotifyBackend',)
#:
#: .. note::
#:     Currently only the first backend in the list is used.
BACKENDS = (
    u'mopidy.backends.despotify.DespotifyBackend',
    #u'mopidy.backends.libspotify.LibspotifyBackend',
)

#: The log format used on the console. See
#: http://docs.python.org/library/logging.html#formatter-objects for details on
#: the format.
CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s' + \
    ' [%(process)d:%(threadName)s] %(name)s\n  %(message)s'

#: The log format used for dump logs. Default::
#:    DUMP_LOG_FILENAME = CONSOLE_LOG_FORMAT
DUMP_LOG_FORMAT = CONSOLE_LOG_FORMAT

#: The file to dump debug log data to. Default::
#:    DUMP_LOG_FILENAME = u'dump.log'
DUMP_LOG_FILENAME = u'dump.log'

#: Protocol frontend to use. Default::
#:
#:     FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'
FRONTEND = u'mopidy.mpd.frontend.MpdFrontend'

#: Sound mixer to use. See :mod:`mopidy.mixers` for all available mixers.
#:
#: Default on Linux::
#:
#:     MIXER = u'mopidy.mixers.alsa.AlsaMixer'
#:
#: Default on OS X::
#:
#:     MIXER = u'mopidy.mixers.osa.OsaMixer'
#:
#: Default on other operating systems::
#:
#:     MIXER = u'mopidy.mixers.dummy.DummyMixer'
MIXER = u'mopidy.mixers.dummy.DummyMixer'
if sys.platform == 'linux2':
    MIXER = u'mopidy.mixers.alsa.AlsaMixer'
elif sys.platform == 'darwin':
    MIXER = u'mopidy.mixers.osa.OsaMixer'

#: ALSA mixer only. What mixer control to use. If set to :class:`False`, first
#: ``Master`` and then ``PCM`` will be tried.
#:
#: Example: ``Master Front``. *Default:* :class:`False`
MIXER_ALSA_CONTROL = False

#: External mixers only. Which port the mixer is connected to.
#:
#: This must point to the device port like ``/dev/ttyUSB0``.
#: *Default:* :class:`None`
MIXER_EXT_PORT = None

#: External mixers only. What input source the external mixer should use.
#:
#: Example: ``Aux``. *Default:* :class:`None`
MIXER_EXT_SOURCE = None

#: External mixers only. What state Speakers A should be in.
#:
#: *Default:* :class:`None`.
MIXER_EXT_SPEAKERS_A = None

#: External mixers only. What state Speakers B should be in.
#:
#: *Default:* :class:`None`.
MIXER_EXT_SPEAKERS_B = None

#: Server to use. Default::
#:
#:     SERVER = u'mopidy.mpd.server.MpdServer'
SERVER = u'mopidy.mpd.server.MpdServer'

#: Which address Mopidy should bind to. Examples:
#:
#: ``localhost``
#:     Listens only on the loopback interface. *Default.*
#: ``0.0.0.0``
#:     Listens on all interfaces.
SERVER_HOSTNAME = u'localhost'

#: Which TCP port Mopidy should listen to. *Default: 6600*
SERVER_PORT = 6600

#: Your Spotify Premium username. Used by all Spotify backends.
SPOTIFY_USERNAME = u''

#: Your Spotify Premium password. Used by all Spotify backends.
SPOTIFY_PASSWORD = u''

#: Path to your libspotify application key. Used by LibspotifyBackend.
SPOTIFY_LIB_APPKEY = u'~/.mopidy/spotify_appkey.key'

#: Path to the libspotify cache. Used by LibspotifyBackend.
SPOTIFY_LIB_CACHE = u'~/.mopidy/libspotify_cache'

#: Path to playlist folder with m3u files.
PLAYLIST_FOLDER = u'~/.mopidy/playlists'

#: Path to folder with local music.
MUSIC_FOLDER = u'~/music'

#: Path to MPD tag_cache for local music
TAG_CACHE = u'~/.mopidy/tag_cache'

# Import user specific settings
dotdir = os.path.expanduser(u'~/.mopidy/')
settings_file = os.path.join(dotdir, u'settings.py')
if os.path.isfile(settings_file):
    sys.path.insert(0, dotdir)
    from settings import *

@@ -935,32 +935,36 @@
 gs. Default::%0A#:
+%0A#: 
     DUMP_LOG_FIL
@@ -990,16 +990,16 @@
 _FORMAT%0A
-
 DUMP_LOG
@@ -1075,24 +1075,28 @@
 Default::%0A#:
+%0A#: 
     DUMP_LOG
@@ -1953,33 +1953,32 @@
 er Front%60%60. 
-*
 Default:
 * :class:%60Fa
@@ -1957,33 +1957,32 @@
 ront%60%60. Default:
-*
  :class:%60False%60%0A
@@ -2135,33 +2135,32 @@
 yUSB0%60%60.%0A#: 
-*
 Default:
 * :class:%60No
@@ -2139,33 +2139,32 @@
 0%60%60.%0A#: Default:
-*
  :class:%60None%60%0AM
@@ -2283,25 +2283,24 @@
 %60Aux%60%60. 
-*
 Default:
 * :class
@@ -2283,33 +2283,32 @@
 %60Aux%60%60. Default:
-*
  :class:%60None%60%0AM
@@ -2394,33 +2394,32 @@
 e in.%0A#:%0A#: 
-*
 Default:
 * :class:%60No
@@ -2398,33 +2398,32 @@
 .%0A#:%0A#: Default:
-*
  :class:%60None%60.%0A
@@ -2518,25 +2518,24 @@
 .%0A#:%0A#: 
-*
 Default:
 * :class
@@ -2526,17 +2526,16 @@
 Default:
-*
  :class:
@@ -2811,17 +2811,16 @@
 ce. 
-*
 Default.
 *%0A#:
@@ -2815,17 +2815,16 @@
 Default.
-*
 %0A#: %60%600.
@@ -2940,17 +2940,16 @@
 ten to. 
-*
 Default:
@@ -2953,17 +2953,16 @@
 lt: 6600
-*
 %0ASERVER_
@@ -3534,16 +3534,16 @@
 music'%0A%0A
-
 #: Path 
@@ -3574,16 +3574,17 @@
 al music
+.
 %0ATAG_CAC

Fix settings docs formatting