Kodi Community Forum
Display Album artist in small title in Player - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Display Album artist in small title in Player (/showthread.php?tid=272304)



Display Album artist in small title in Player - Cyberrule - 2016-05-02

I noticed that some of the add-ons using this small title above the title text in Kodi player. (youtube).
I am trying to get it on my list item. but I cannot find a way to get it work. Please help me on this.
Image

I like to input in "Beck - Mutations" position.

this is my code
Code:
li = xbmcgui.ListItem('title', thumbnailImage='http://image.com/image.png')
        li.setInfo( "audio", { "Title" : 'hellop', "Artist " : 'Some artist', "Studio" : 'canal' } )
        xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url="http://example.com/sample.m3u8" listitem=li)

thank you,


RE: Display Album artist in small title in Player - Torben - 2016-05-02

You can probably find the label used by looking in the xml files. I dont know which. Or alternatively find the youtube.pl and scan the files for xbmc.setinfo?


RE: Display Album artist in small title in Player - Cyberrule - 2016-05-03

Thank you for your information.
I found it. I was searching through Youtube before and it's difficult to find.
finally I got it.
Code:
li = xbmcgui.ListItem('title', thumbnailImage='http://image.com/image.png')
        li.setInfo( "audio", { "Title" : 'hellop', "Artist" : ['Some artist'], "Studio" : 'canal' } )
        xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url="http://example.com/sample.m3u8" listitem=li)

I have added space in Artist title. and artists should be list of artists. after that it will show up.


RE: Display Album artist in small title in Player - Torben - 2016-05-03

Ah. I thought you posted working code in OP and was missing a tag. I am glad you got it working! There is a wiki on the JSON. It is a hard read, but has information.