Bug discrepancy between types of stated media
#1
Upon playing audio content from a source that might be the audio from a video file...

Apple iTunes Podcast v1.1.6 by Tristian Fisher for example...

Upon receiving a notification Player.OnPlay giving me 2 pieces of information stating that this is a video, movie using playerid = 1...


{
"jsonrpc": "2.0",
"method": "Player.OnPlay",
"params": {
"data": {
"item": {
"title": "#412: How To Fix The Patent Mess",
"type": "movie"
},
"player": {
"playerid": 1,
"speed": 1
}
},
"sender": "xbmc"
}
}

I then query the device using Player.GetItem on the same item
{"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["type"]},"id":88}

but receive an error:

{
"code": -32100,
"message": "Failed to execute method."
}

Though a query using playerid = 0 is successful, but this time it states the type is a song...

{
"item": {
"albumid": -1,
"artist": [],
"duration": 0,
"fanart": "",
"file": "http://podcastdownload.npr.org/anon.npr-podcasts/podcast/510289/163541472/npr_163541472.mp3?orgId=1&p=510289&story=163541472&t=podcast&e=163541472&ft=pod&f=510289",
"genre": [],
"label": "npr_163541472.mp3",
"lastplayed": "",
"lyrics": "",
"playcount": 0,
"rating": 0,
"thumbnail": "",
"title": "npr_163541472.mp3",
"track": 0,
"type": "song",
"year": 0
}
}

An OnPlay notification with playerid 1 should not then fail when querying the same item with Player.GetItem with playerid 1 and vice versa.
Reply
#2
bug trac made.

http://trac.kodi.tv/ticket/16262
Reply

Logout Mark Read Team Forum Stats Members Help
discrepancy between types of stated media0