PVR: Player.Open using number instead of channelid

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
asterix555 Offline
Junior Member
Posts: 1
Joined: Jun 2016
Reputation: 0
Post: #1
Hi guys,

I have several Raspberry PIs installed in a restaurant and would like to integrate those into home-automation. Almost everything works, but I got struggeled programming a button that opens the first PVR-channel.

The issue is, that I need to get the channelid from the KODI first - but this channelid is different on every KODI.

Is it possible to choose the channel using the PVR-"number"?
This field is synchronized with the backend (tvheadend).

Or you have any other idea how I may solve this issue (eg. sync channelid across all kodis)?

kind regards
find quote
mcpc Offline
Junior Member
Posts: 3
Joined: Jan 2017
Reputation: 0
Post: #2
You would need to find the right channelid for each kodi. Run a simple json to get list of channels and then find your channel ID via part of the Channel label you want, or simple open the right entry in your json list ([0] for channel 1, [1] for channel 2, etc...).
find quote