Better radio mode

This commit is contained in:
emeric
2018-05-31 20:43:09 +02:00
parent e0ae294abf
commit fff899cecb
6 changed files with 49 additions and 20 deletions
+1 -1
View File
@@ -668,7 +668,7 @@ MediaScanner::checkAudioFiles( Stats& stats )
auto clusters = Cluster::getAll(_db.getSession());
for (auto cluster : clusters)
{
if (cluster->getTracks().size() == 0)
if (cluster->getCount() == 0)
{
LMS_LOG(DBUPDATER, DEBUG) << "Removing orphan cluster '" << cluster->getName() << "'";
cluster.remove();