[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-18 Thread Kai Uwe Broulik
https://bugs.kde.org/show_bug.cgi?id=405762

Kai Uwe Broulik  changed:

   What|Removed |Added

  Latest Commit||https://commits.kde.org/pla
   ||sma-workspace/1be4bb880fdee
   ||a93381eb45846a7d487e58beb93
 Resolution|--- |FIXED
   Version Fixed In||5.17.1
 Status|CONFIRMED   |RESOLVED

--- Comment #5 from Kai Uwe Broulik  ---
Git commit 1be4bb880fdeea93381eb45846a7d487e58beb93 by Kai Uwe Broulik, on
behalf of Denis Sheremet.
Committed on 18/10/2019 at 07:02.
Pushed by broulik into branch 'Plasma/5.17'.

[Media Controller] Multiple artists support

According to the spec, xesam:artist should be a string array, but
majority of players uses string instead. This patch adds support for
both string array and string options to allow new software development
according to the spec but also maintain compatibility with existing
solutions.
FIXED-IN: 5.17.1

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

M  +15   -1applets/mediacontroller/contents/ui/main.qml

https://commits.kde.org/plasma-workspace/1be4bb880fdeea93381eb45846a7d487e58beb93

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread Denis Sheremet
https://bugs.kde.org/show_bug.cgi?id=405762

Denis Sheremet  changed:

   What|Removed |Added

 CC||kde-bugtracker@lxlz.space

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread K900
https://bugs.kde.org/show_bug.cgi?id=405762

--- Comment #4 from K900  ---
A friend submitted a draft patch that seems to fix this:
https://phabricator.kde.org/D24740

However, I can't actually find a single player that _does_ report xesam:artist
as a single string, so it's possible that a correct patch could be a lot
simpler.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread K900
https://bugs.kde.org/show_bug.cgi?id=405762

--- Comment #3 from K900  ---
I've got a custom script that pulls data from a web page and feeds it into
MRPIS, and I have it follow the FDO spec. 

Clementine seems to use a list too:
https://github.com/clementine-player/Clementine/blob/17d95b7833fd0f8b7547d70a6dbf3367be31b85e/src/core/song.cpp#L1176
(despite only ever having a single artist per track).

So does Rhythmbox:
https://github.com/GNOME/rhythmbox/blob/4abbd528da0a32d0c343a22d5dfb2c5e98c489f5/plugins/mpris/rb-mpris-plugin.c#L557
(but, again, only with a single track - note the last argument to
add_string_property_2, which is "gboolean as_list").

VLC seems to also use a single item list?
https://github.com/videolan/vlc/blob/f83434ac6488e5cee32e191f9a89859254156b0e/modules/control/dbus/dbus.c#L1305

It seems like there's some sort of auto-cast involved - doing
`console.log(currentMetadata["xesam:artist"])` gives me `[Artist Name]`, but
the applet still processes it correctly. Adding more than one artist breaks
things though.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=405762

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread Kai Uwe Broulik
https://bugs.kde.org/show_bug.cgi?id=405762

Kai Uwe Broulik  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #2 from Kai Uwe Broulik  ---
What player are you using? VLC gives me a string.
I can fix that but I'd like to test with an actual player that does it, as to
not break those that don't

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread K900
https://bugs.kde.org/show_bug.cgi?id=405762

--- Comment #1 from K900  ---
Moved this to the right component (I hope). Can confirm it's still an issue on
plasma-workspace 5.17.0.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 405762] xesam:artist is not read as List

2019-10-17 Thread K900
https://bugs.kde.org/show_bug.cgi?id=405762

K900  changed:

   What|Removed |Added

   Target Milestone|--- |1.0
  Component|MediaController |Media Player
Version|unspecified |master
   Assignee|ksi...@gmail.com|k...@privat.broulik.de
Product|plasma-mediacenter  |plasmashell
 CC||m...@0upti.me,
   ||plasma-b...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.