From 0cce414aee0d5909e69c912f6350d580739683dc Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 27 Oct 2016 05:29:35 -0500 Subject: [PATCH] Fix reset hanging --- resources/lib/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 72abc71f..d1ac9859 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -9,6 +9,7 @@ import logging import sqlite3 import StringIO import os +import sys import time import unicodedata import xml.etree.ElementTree as etree @@ -17,6 +18,7 @@ from datetime import datetime import xbmc import xbmcaddon import xbmcgui +import xbmcplugin import xbmcvfs ################################################################################################# @@ -437,6 +439,7 @@ def reset(): dialog.ok(heading=language(29999), line1=language(33088)) xbmc.executebuiltin('RestartApp') + return xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, xbmcgui.ListItem()) def sourcesXML(): # To make Master lock compatible