Updated kodi settings on Lenovo
This commit is contained in:
@@ -8,11 +8,12 @@ from . import api
|
||||
def Main():
|
||||
startup = True
|
||||
utils.log(f'Starting service ...')
|
||||
utils.setsetting('service', 'idle')
|
||||
utils.log(config.addon_info, 3)
|
||||
|
||||
# Geolocation
|
||||
if not utils.setting('geoip') and not utils.setting('loc1'):
|
||||
utils.setsetting('geoip', 'true')
|
||||
if not utils.geoip() and not utils.setting('loc1'):
|
||||
utils.geoip(True)
|
||||
utils.setsetting('service', 'running')
|
||||
weather.Main('1', mode='geoip')
|
||||
weather.Main('1', mode='download')
|
||||
@@ -67,9 +68,3 @@ def Main():
|
||||
utils.log(f'Stopping service ...')
|
||||
api.s.close()
|
||||
|
||||
# Workaround KODI issue (v0.9.5)
|
||||
try:
|
||||
utils.setsetting('service', 'stopped')
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user