JSON Player.Open PVR channel with channelgroup possible
#1
Hey guys.

Currently developing an python addon (AD zapper) whichs stores current PVR channel, starts a timer and rezap's to the old channel.
It's working quite well in its alpha state  Blush

Currently it gets the infos with an json request:
Quote:        query = {
                "method": "Player.GetItem",
                "params": {"properties": ["title", "season", "episode", "file", "channel"],
                           "playerid": props['playerid']},
                "id": "VideoGetItem"
                }
from there it takes the"id" (= channelid) and "channel" as name (for the ui).
When timer is over it switches back to the channelid with:
Quote:    query = {
        "method": "Player.Open",
        "params": {"item": {"channelid": channelId}}
    }
Switching back works but the correct channel group isn't selected afterwards in the "DialogPVRChannelsOSD.xml" window.

Example:
  • My groups are "ORF und Lokale",...,"Unterhaltung",...
  • Channel "ProSieben" is selected from group "Unterhaltung" from the "DialogPVRChannelsOSD.xml" window
  • activating my addon -> it stores the channel id
  • changing channelgroup in "DialogPVRChannelsOSD.xml" window and select an channel from other group, ex.: "ORF und Lokale"
  • after timer expires Player.Open will be called with previously stored channel id, kodi switches back to "ProSieben"
  • opening "DialogPVRChannelsOSD.xml" window again and sadly, i am in the "Alle Kanäle" group and have to switch it manually
So here is my question: Is there a JSON way to select a PVR channel AND channel group?

thx
pOpY
Reply

Logout Mark Read Team Forum Stats Members Help
JSON Player.Open PVR channel with channelgroup possible0