Call lsinfo recusrively to populate artists and albums, instead of using listallinfo

This commit is contained in:
craig.p.drummond
2014-12-05 14:33:17 +00:00
parent 59eae47419
commit 3371f479f0
3 changed files with 11 additions and 8 deletions

View File

@@ -11,6 +11,8 @@
6. Add option to set MPD top-level path. Only tracks that are under this path
will be used to populate artist and album listings. This is mainly of use
when MPD is configured to use a UPnP backend.
7. Use lsinfo, and not listallinfo, to populate artists and albums by default.
Set alwaysUseLsInfo=false in Cantata's config file to disable this.
1.5.2
-----

15
README
View File

@@ -429,12 +429,13 @@ alwaysUseHttp=<Boolean>
Default is false.
alwaysUseLsInfo=<Boolean>
By default, Cantata uses 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 fall back to calling
"lsinfo <dir>" for each directory. Setting this config item to true will
cause Cantata to always use this alternative method.
Default is false.
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
@@ -474,7 +475,7 @@ undoSteps=20
mpdPoll=true
mpdListSize=5000
alwaysUseHttp=true
alwaysUseLsInfo=true
alwaysUseLsInfo=false
menu=3
stopHttpStreamOnPause=true
cacheScaledCovers=true

View File

@@ -801,7 +801,7 @@ QString Settings::lang()
bool Settings::alwaysUseLsInfo()
{
return cfg.get("alwaysUseLsInfo", false);
return cfg.get("alwaysUseLsInfo", true);
}
bool Settings::showMenubar()