2012-12-06, 20:49
(2012-12-05, 11:01)N3MIS15 Wrote:(2012-12-05, 10:39)Montellese Wrote: I have no clue what you are mentioning/talking about. Will need a better problem description.
Request:
Code:{
"params": {
"playerid": 1,
"properties": [
"title",
"season",
"episode",
"duration",
"showtitle",
"fanart",
"tvshowid",
"plot",
"thumbnail",
"year"
]
},
"jsonrpc": "2.0",
"id": 0,
"method": "Player.GetItem"
}
Response:
Code:{
"jsonrpc": "2.0",
"id": 0,
"result": {
"item": {
"plot": "",
"tvshowid": -1,
"episode": -1,
"title": "",
"fanart": "",
"season": -1,
"label": "",
"year": 0,
"type": "unknown",
"thumbnail": "",
"showtitle": ""
}
}
}
Player.GetItem won't return any information for video files that are not in the video library. (Player.GetItem is the only method i have tested)
EDIT: i know there is alot of useless params there, the main concerns are label and thumbnail as they should be returned for any video file (especially label).
If the files are opened from GUI they return data just fine.
I just tried this with a few local files (which are not in the library) and "label" always has the file name in it. "thumbnail" can't be filled. That only works when you start the video from the GUI and you navigate into the directory where both the video file and the artwork is. Then xbmc automatically associates the local artwork with the file. Otherwise (e.g. through JSON-RPC) that doesn't happen.