2012-10-20, 15:04
I must of missed this in the testing or I'm doing something stupid.
I can't see any real difference between GetChannelGroupDetails and GetChannels. But the problem I can't currently see the answer to is getting PVR.Details.Channel. I'll give some examples and then maybe I can get a silly mistake spotted
Doesn't like "starttime", it will only except PVR.Fields.Channel. Which is what introspect says but then how can you get "starttime" and "endtime"? I may be reading intospect incorrectly but it says:
How can it be $ref: "Fields" but return "Details"?
GetChannels also only excepts PVR.Fields.Channel.
Basically I want to list all channels with the current programme name, with start and end time.
Hopefully I'm doing something obviously wrong. I think I have introspect blindness atm
I can't see any real difference between GetChannelGroupDetails and GetChannels. But the problem I can't currently see the answer to is getting PVR.Details.Channel. I'll give some examples and then maybe I can get a silly mistake spotted
Code:
{"jsonrpc": "2.0", "method": "PVR.GetChannelDetails", "params": { "channelid": 6, "properties": [ "starttime" ] }, "id": 1}
Code:
"params": [
{
"$ref": "Library.Id",
"name": "channelid",
"required": true
},
{
"$ref": "PVR.Fields.Channel",
"name": "properties"
}
],
"returns": {
"properties": {
"channeldetails": {
"$ref": "PVR.Details.Channel"
}
},
GetChannels also only excepts PVR.Fields.Channel.
Basically I want to list all channels with the current programme name, with start and end time.
Hopefully I'm doing something obviously wrong. I think I have introspect blindness atm