Always use lsinfo

This commit is contained in:
Craig Drummond
2015-07-03 23:56:29 +01:00
committed by Craig Drummond
parent 5b794ad02b
commit 87cbabe13e
2 changed files with 0 additions and 12 deletions

10
README
View File

@@ -463,15 +463,6 @@ alwaysUseHttp=<Boolean>
MPD version is <0.19 or not connected to 127.0.0.1).
Default is false.
alwaysUseLsInfo=<Boolean>
Versions of Cantata before 1.6 defaulted to using MPD's listallinfo
command to retrieve the whole music collection. This can fail (especially
with MPD 0.18.x which needs more memory), and if it does Cantata will
fallback to calling "lsinfo <dir>" for each directory. This fallback is now
the default from Cantata 1.6. To revert to first attempting listallinfo,
set this config item to false.
Default is true.
menu=<Integer>
Controls usage of menubar and menu button. If set to 1 then a menubar is
used. If set to 2 then a menu button is used. If set to 3 then both the
@@ -509,7 +500,6 @@ volumeStep=2
undoSteps=20
mpdPoll=true
mpdListSize=5000
alwaysUseHttp=true
alwaysUseLsInfo=false
menu=3
stopHttpStreamOnPause=true

View File

@@ -66,7 +66,6 @@ void MPDConnection::enableDebug()
static const int constSocketCommsTimeout=2000;
static const int constMaxReadAttempts=4;
static int maxFilesPerAddCommand=10000;
static bool alwaysUseLsInfo=true;
static int seekStep=5;
static const QByteArray constOkValue("OK");
@@ -270,7 +269,6 @@ MPDConnection::MPDConnection()
#if !defined ENABLE_UBUNTU && !defined CANTATA_WEB
Configuration cfg;
maxFilesPerAddCommand=cfg.get("mpdListSize", 10000, 100, 65535);
alwaysUseLsInfo=cfg.get("alwaysUseLsInfo", true);
seekStep=cfg.get("seekStep", 5, 2, 60);
MPDParseUtils::setSingleTracksFolder(cfg.get("singleTracksFolder", QString()));
#endif