piccoli fix service

This commit is contained in:
marco
2020-05-13 10:11:45 +02:00
parent 70dd948ffc
commit c186f2cdc8
2 changed files with 6 additions and 3 deletions

View File

@@ -94,8 +94,8 @@ def elementum_monitor():
Monitor = json['monitor']
# else create it
else:
json = jsontools.load('{"monitor":{},"settings":{}}')
json = jsontools.dump(json)
Monitor = jsontools.load('{"monitor":{},"settings":{}}')
json = jsontools.dump(Monitor)
filetools.write(monitor, json, silent=True)
if len(Monitor) > 0:

View File

@@ -385,7 +385,10 @@ if __name__ == "__main__":
# mark as stopped all downloads (if we are here, probably kodi just started)
from specials.downloads import stop_all
stop_all()
try:
stop_all()
except:
logger.error(traceback.format_exc())
while True:
schedule.run_pending()