#KODI integration - artwork
3 messages · Page 1 of 1 (latest)
The issue seems not to be at Kodi api side because when i use a api cliënt like Postman and run the following requests, I receive all the necessary artwork:
Request:
http://192.168.1.22:8080/jsonrpc
Body:
{
"jsonrpc": "2.0",
"method": "Player.GetActivePlayers",
"params": {},
"id": 0
}
Response:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"item": {
"art": {
"banner": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmoviebanner%2finterstellar-542033b1b28dd.jpg/",
"clearart": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fhdmovieclearart%2finterstellar-5463e7ad94049.png/",
"clearlogo": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fhdmovielogo%2finterstellar-541dd6756e663.png/",
"discart": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmoviedisc%2finterstellar-544fc7176aba4.png/",
"fanart": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmoviebackground%2finterstellar-544bb9af46801.jpg/",
"icon": "image://DefaultVideo.png/",
"keyart": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmovieposter%2finterstellar-54246e41368d5.jpg/",
"landscape": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmoviethumb%2finterstellar-541db498b25cf.jpg/",
"poster": "image://https%3a%2f%2fassets.fanart.tv%2ffanart%2fmovies%2f157336%2fmovieposter%2finterstellar-550825f7cc108.jpg/",
"thumb": "image://video@smb%3a%2f%2f192.168.1.22%2fD%20Content%2fVideo%2fMovies%2fInterstellar%20(2014)%2fInterstellar%20(2014)%20Remux-2160p%20Proper.mkv/"
},
"id": 3824,
"label": "Interstellar",
"type": "movie"
}
}
}
When using Home assistant Developer tools > action:
service: kodi.call_method
data:
entity_id: media_player.10_79_80_127
method: Player.GetItem
playerid: 1
properties:
- art
Log states the following error message:
2025-02-06 21:11:20.344 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.192_168_1_22.Player.GetItem({'parameters': {'playerid': 1, 'properties': ['art']}}) error: {'code': -32602, 'data': {'method': 'Player.GetItem', 'stack': {'message': 'Missing parameter', 'name': 'playerid', 'type': 'integer'}}, 'message': 'Invalid params.'}