2017-03-29, 10:47
(2017-03-28, 09:52)mcl22 Wrote: ...
The coolest thing would be to ask kodi just for the channel name. But most channels (in Germany) do have names that, i guess, would cause the same problems. Examples: RTL, Sat1, Pro7, ARD, ZDF, n-tv, n24, ...
It's not possible to do some kind of linking, is it? I mean a possibility to tell the skill something like "if you get a s.t.s. then try sts" or "R.T.L. is RTL" or "Sat eins ist Sat1".
I think that could be done with a JSON in way like this:
chanalTranslate.json
Code:
[{
"name": "R.T.L.",
"pvrname": "RTL"
}, {
"name": "Sat eins",
"pvrname": "SAT1"
}]
Code:
with open(ChannelTranslateFile, 'r') as transfile:
ChannelTranslate=transfile.read().rstrip('\n')
trans = json.loads(str(ChannelTranslate))
for tr in trans:
if channelname == tr['name']:
writeLog("Translating %s to %s" % (channelname,tr['pvrname']), level=xbmc.LOGDEBUG)
channelname = tr['pvrname']
@jingai please correct me if I'm wrong but I think that could be a possible way...
btw: I have setup my privat WEB-SERVER but I've to call them for version 2.1 (what is the entry point)