Bug 395033 - No artist shown if track has multiple artists
Summary: No artist shown if track has multiple artists
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: details mode (show other bugs)
Version: 17.12.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-04 21:01 UTC by Stuart Trotter
Modified: 2018-06-06 07:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 18.04.3


Attachments
Screenshot displaying issue (346.18 KB, image/png)
2018-06-04 21:01 UTC, Stuart Trotter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Trotter 2018-06-04 21:01:51 UTC
Created attachment 113076 [details]
Screenshot displaying issue

If a track has multiple artists e.g. Room 5 feat. Oliver Cheatham, this seems to be recorded as two separate artists in the information pane and nothing shown in the artist column in details view (see screenshot)
Comment 1 Kai Uwe Broulik 2018-06-05 08:09:59 UTC
Artist is a QStringList and gets wrapped in a QVariant. A toString() of a single element list seems to unwrap it but a list returns empty string.
Comment 2 Kai Uwe Broulik 2018-06-06 07:18:09 UTC
Git commit 2f6635f4e8c25d30b8e9483b0611cf613fc6f043 by Kai Uwe Broulik.
Committed on 06/06/2018 at 07:17.
Pushed by broulik into branch 'Applications/18.04'.

[KBalooRolesProvider] Support properties of type QStringList

QVariant::toString() unwraps a QStringList with a single string to a QString, however a list with multiple entries returns a null string.
Explicitly check for KFileMetaData property type and convert accordingly.
FIXED-IN: 18.04.3

Differential Revision: https://phabricator.kde.org/D13349

M  +2    -0    src/kitemviews/private/kbaloorolesprovider.cpp

https://commits.kde.org/dolphin/2f6635f4e8c25d30b8e9483b0611cf613fc6f043