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