Kodi Community Forum
Linux Metadata for music - 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: Linux Metadata for music (/showthread.php?tid=257088)



Metadata for music - Kasjer - 2016-01-19

Hi,
sorry for my bad english

How can i receive array with data e.g. artistName, albunName, trackName, thumbnail(whole image)... for music list? The best for me via python script or jsonrpc.
I'm trying send this information by json to another device. The only one thing which i need is list with this metadata. Is there any way?


RE: Metadata for music - ronie - 2016-01-19

you can use jsonrpc to receive a list of all the songs (including metadata) in your music library:
http://kodi.wiki/view/JSON-RPC_API/v6#AudioLibrary.GetSongs


RE: Metadata for music - Kasjer - 2016-01-20

Thanks a lot. This information where needed.

But I have another one question to this case, whether thumbnail value "image://music@special%3a%2f%2fprofile%2fplaylists%2fmusic%2fnode%2fsongName%20-%20Song.mp3/" can be saved as png/jpg or bmp file? I need to send readable/executable images too.

I use:
Code:
response = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "AudioLibrary.GetSongs", "params": { "limits": { "start" : 0, "end": 25 }, "properties": ["artist", "album", "title", "file", "thumbnail"], "sort": { "order": "ascending", "method": "sorttitle", "ignorearticle": false } }, "id": "libSongs"}')



RE: Metadata for music - Kasjer - 2016-01-22

Is there any options to save music's thumbnail to file?


RE: Metadata for music - Kasjer - 2016-01-28

Any suggestion?


RE: Metadata for music - el_Paraguayo - 2016-01-28

Can't you get a path to the thumbnail from the json response?


RE: Metadata for music - Kasjer - 2016-01-29

(2016-01-28, 11:22)el_Paraguayo Wrote: Can't you get a path to the thumbnail from the json response?

i'm getting "image://music@special%3a%2f%2fprofile%2fplaylists%2fmusic%2fnode%2fsongName%20-%20Song.mp3/" but i can't display image or save it, even xbmc.translatePath() returns an error


RE: Metadata for music - Torben - 2016-01-30

You should be able to display it. Perhaps you need an $ESCINFO somewhere. Display is working for me on windows.