Kodi Community Forum

Full Version: MusicPlayer.Contributors and MusicPlayer.ContributorAndRole are empty
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't seem to get these infolabels to return anything. MusicPlayer.Property(Role.str) does work.

scott s.
.
That would be because "contributors" and "contributorandrole" were ommited from const infomap musicplayer

Nice to see someone trying to use this @scott967, I will try to get the fix into v18 RC4
See PR15141
Thanks for the quick turn-around.  I was looking at code, and fixated on this:
Code:
      case MUSICPLAYER_CONTRIBUTORS:
      case LISTITEM_CONTRIBUTORS:
        if (tag->HasContributors())
        {
          value = tag->GetContributorsText();
          return true;
        }
        break;
      case MUSICPLAYER_CONTRIBUTOR_AND_ROLE:
      case LISTITEM_CONTRIBUTOR_AND_ROLE:
        if (tag->HasContributors())
        {
          value = tag->GetContributorsAndRolesText();
          return true;
        }
        break;

which seemed correct and then was trying to dig down into HasContributors and GetContributorsText but couldn't see any obvious reason for them not to work.  Didn't realize the need for infomap as well.

scott s.
.