Commit a8df563c authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix radio metadata dialog

parent e4448985
......@@ -281,13 +281,23 @@ void ModelDataLoader::loadDataByUrl(ElisaUtils::PlayListEntryType dataType, cons
}
break;
}
case ElisaUtils::Radio:
{
auto databaseId = d->mDatabase->radioIdFromFileName(url);
if (databaseId != 0) {
Q_EMIT allRadioData(d->mDatabase->radioDataFromDatabaseId(databaseId));
} else {
auto result = d->mFileScanner.scanOneFile(url);
Q_EMIT allRadioData(result);
}
break;
}
case ElisaUtils::Album:
case ElisaUtils::Artist:
case ElisaUtils::Composer:
case ElisaUtils::Genre:
case ElisaUtils::Lyricist:
case ElisaUtils::Unknown:
case ElisaUtils::Radio:
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment