# Configuration

This extension provides a number of configuration values that can be tweaked. However, the default configuration should contain everything to get you up and running, and will usually require only a few modifications, if any, to match personal preferences.

## Configuration Values

dleyna/enabled

  Whether this extension should be enabled or not.

dleyna/upnp_browse_limit

  The maximum number of objects to retrieve per UPnP Browse action, or `0` to retrieve all objects.

dleyna/upnp_lookup_limit

  The maximum number of objects to retrieve by ID in a single UPnP Search action, or `0` for no limit. Note that for this setting to have any effect, the media server must advertise that it is capable of searching for object IDs.

  This is an experimental setting and may be changed or removed in future versions.

dleyna/upnp_search_limit

  The maximum number of objects to retrieve per UPnP Search action, or `0` to retrieve all objects.

dleyna/dbus_start_session

  The command to start a D-Bus session bus if none is found, for example when running Mopidy as a service.

## Default Configuration

For reference, this is the default configuration shipped with Mopidy-dLeyna release 2.0.2:

    [dleyna]
    enabled = true

    # maximum number of objects to retrieve per UPnP Browse action, or 0
    # to retrieve all objects
    upnp_browse_limit = 500

    # maximum number of objects to retrieve by ID in a single UPnP Search
    # action (if supported by device), or 0 for no limit
    upnp_lookup_limit = 20

    # maximum number of objects to retrieve per UPnP Search action, or 0
    # to retrieve all objects
    upnp_search_limit = 100

    # command to start session bus if none found, e.g. when running Mopidy
    # as a service
    dbus_start_session = dbus-daemon --fork --session --print-address=1 --print-pid=1