kodi-pvr / pvr.iptvsimple

IPTV Simple client for Kodi PVR
GNU General Public License v2.0
777 stars 373 forks source link

Need assistance #115

Closed ykamchi closed 7 years ago

ykamchi commented 7 years ago

Hi,

I wonder if it is possible to query the pvr information, like url from the addon?

If it is, can you please share a code example of how to get a list of channels with information like: channel name, URL, icon etc.

... after searching, I managed to find the channels, but how do I get the URL that it runs, can someone someone assist?

Here is my code:

ret = json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id": 1, "method": "PVR.GetChannelGroups", "params":{"channeltype":"tv"} }')) channelgroups = ret['result']['channelgroups'] for channelgroup in channelgroups:

Get Channels

ret = json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id": 1, "method": "PVR.GetChannels", "params":{"channelgroupid" : ' + str(channelgroup['channelgroupid']) + '} }')) channels = ret['result']['channels'] for channel in channels:

Get Channel Details

ret = json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "id": 1, "method": "PVR.GetChannelDetails", "params":{"channelid" : ' + str(channel['channelid']) + '} }')) utils.write_log('service', str(ret))Confused (This post was last modified: 2017-03-15 16:03 by ykamchi.) PM FIND

afedchin commented 7 years ago

please use http://forum.kodi.tv for assistance.

ykamchi commented 7 years ago

Thx, Yohay

On Mar 21, 2017, at 12:16, Anton Fedchin notifications@github.com wrote:

Closed #115.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ykamchi commented 7 years ago

Well, I did try, but I guess no one know the answer there since there is no reply for a week or more.

Please assist me

Thx, Yohay

On Mar 21, 2017, at 12:16, Anton Fedchin notifications@github.com wrote:

Closed #115.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.