Hello,
I need some help building my very first addon. The idea is that when i press a button on my remote, i change channels (duhh, thats a pvr thing!) but, i dont have pvr (i added the channels to favourites and launch them using PlayMedia() because otherwise they would stop working after 10 seconds although i did pay for it…) anyway,
<favourite name="NPO Nieuws" thumb="special://skin/extras/icons/livetv.png">PlayMedia("plugin://plugin.video.nederland24/?url=LI_NEDERLAND1_221673&mode=playVideo")</favourite>
is the example i have, like when that one is playing, i need to add the action that when i press pageup i’m switching to the next one
<favourite name="NPO1" thumb="special://skin/extras/icons/livetv.png">PlayMedia("plugin://plugin.video.nederland24/?url=LI_NEDERLAND1_221674&mode=playVideo")</favourite>
Vice versa for the previous but then it needs to go up the channel list
But i’m only getting far enough with my skills to assign a script to the buttons and launch that python code. Python seems very, very different from PHP too me. In php i would go like
if(currentlyPlaying == 'NPO Nieuws'){
xbmc.excecutebuilding(Play(NPO1));
}
Well, actually i would use a switch statement, but python does’nt support that.
In stead of fixing the pvr with iptv (also too hard for my skillset) i’ll just use this because i do’nt have a lot of channels
If someone could help me on my way, i would be very happy!
Regards, Michel