piccoli fix service
This commit is contained in:
+2
-2
@@ -94,8 +94,8 @@ def elementum_monitor():
|
|||||||
Monitor = json['monitor']
|
Monitor = json['monitor']
|
||||||
# else create it
|
# else create it
|
||||||
else:
|
else:
|
||||||
json = jsontools.load('{"monitor":{},"settings":{}}')
|
Monitor = jsontools.load('{"monitor":{},"settings":{}}')
|
||||||
json = jsontools.dump(json)
|
json = jsontools.dump(Monitor)
|
||||||
filetools.write(monitor, json, silent=True)
|
filetools.write(monitor, json, silent=True)
|
||||||
|
|
||||||
if len(Monitor) > 0:
|
if len(Monitor) > 0:
|
||||||
|
|||||||
+4
-1
@@ -385,7 +385,10 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# mark as stopped all downloads (if we are here, probably kodi just started)
|
# mark as stopped all downloads (if we are here, probably kodi just started)
|
||||||
from specials.downloads import stop_all
|
from specials.downloads import stop_all
|
||||||
stop_all()
|
try:
|
||||||
|
stop_all()
|
||||||
|
except:
|
||||||
|
logger.error(traceback.format_exc())
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
schedule.run_pending()
|
schedule.run_pending()
|
||||||
|
|||||||
Reference in New Issue
Block a user