mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Clear patch
In the event the patch is borked, clear it and let the user know of this.
This commit is contained in:
parent
d78b289a2b
commit
17fdf0e923
2 changed files with 14 additions and 1 deletions
|
@ -749,3 +749,7 @@ msgstr ""
|
||||||
msgctxt "#33154"
|
msgctxt "#33154"
|
||||||
msgid "Add libraries"
|
msgid "Add libraries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#33155"
|
||||||
|
msgid "The currently applied patch for Emby for Kodi is corrupted! Please post to the Emby for Kodi forums if this issue persists. This will need to be fixed as soon as possible."
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -12,8 +12,8 @@ import xbmc
|
||||||
import xbmcvfs
|
import xbmcvfs
|
||||||
|
|
||||||
import emby_db
|
import emby_db
|
||||||
|
from helper.utils import delete_folder
|
||||||
from helper import _, settings, window, dialog
|
from helper import _, settings, window, dialog
|
||||||
from objects import obj
|
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
@ -21,6 +21,15 @@ LOG = logging.getLogger("EMBY."+__name__)
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
try:
|
||||||
|
from objects import obj
|
||||||
|
except Exception as error:
|
||||||
|
# clear patch
|
||||||
|
LOG.exception(error)
|
||||||
|
delete_folder()
|
||||||
|
dialog("ok", heading="{emby}", line1=_(33155))
|
||||||
|
xbmc.executebuiltin('RestartApp')
|
||||||
|
|
||||||
|
|
||||||
class Database(object):
|
class Database(object):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue