Improve album cover loader, lyrics search and streaming support
- Improve album cover loader - Add album cover loader result struct - Move album cover thumbnail scaling to album cover loader - Make init art manual look for album cover images in song directory - Make album cover search work for songs outside of collection and streams - Make album cover search work based on artist + title if album is not present - Update art manual in playlist for local files, devices and CDDA - Make lyrics search work for streams - Add stream dialog to menu - Remove dead code in InternetSearchModel - Simplify code in InternetSearchView
This commit is contained in:
@@ -839,6 +839,16 @@ void GstEnginePipeline::TagMessageReceived(GstMessage *msg) {
|
||||
bundle.bitrate = ParseUIntTag(taglist, GST_TAG_BITRATE) / 1000;
|
||||
bundle.lyrics = ParseStrTag(taglist, GST_TAG_LYRICS);
|
||||
|
||||
if (!bundle.title.isEmpty() && bundle.artist.isEmpty() && bundle.album.isEmpty() && bundle.title.contains(" - ")) {
|
||||
QStringList title_splitted = bundle.title.split(" - ");
|
||||
if (title_splitted.count() == 2) {
|
||||
bundle.artist = title_splitted.first();
|
||||
bundle.title = title_splitted.last();
|
||||
bundle.artist = bundle.artist.trimmed();
|
||||
bundle.title = bundle.title.trimmed();
|
||||
}
|
||||
}
|
||||
|
||||
gst_tag_list_free(taglist);
|
||||
|
||||
emit MetadataFound(id(), bundle);
|
||||
|
||||
Reference in New Issue
Block a user