2017-04-21, 18:34
(2017-04-19, 10:29)vladi1971 Wrote:(2017-04-19, 10:21)lucapoison Wrote: I solved the problem editing the file... It would be useful for the future to have an official update with this changes already done
Inviato dal mio Redmi Note 4 utilizzando Tapatalk
Non mi funciona a me....che sto faciendo si sbagliato ?
Hi vladi1971!
As far as I know, indentation is very important in python. Which editor did you use to edit the file?
It wont work, if your lines in the file default.py look like this:
Code:
def log_country():
raiplay = RaiPlay()
country = "Italia"
xbmc.log("RAI geolocation: %s" % country)
Indeed it works, if they look like this:
Code:
def log_country():
raiplay = RaiPlay()
country = "Italia"
xbmc.log("RAI geolocation: %s" % country)
By the way: I found out, that it does not really matter if you write "Italia". It also works with any other string like "North Korea", "Mordor" or "Westeros". So like manalishi79 already posted before, my "solution" ain't really a solution but only a quick-and-dirty workaround.
Have a nice day!