mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Prevent patch loop
Try once, then let it go, to avoid locking user in a restart loop
This commit is contained in:
parent
aef76725c8
commit
30f066ede8
1 changed files with 7 additions and 0 deletions
|
@ -355,6 +355,11 @@ def get_objects(src, filename):
|
|||
restart = not xbmcvfs.exists(os.path.join(temp, "objects") + '/')
|
||||
path = os.path.join(temp, filename).encode('utf-8')
|
||||
|
||||
if restart and (settings('appliedPatch') or "") == filename:
|
||||
|
||||
LOG.warn("Something went wrong applying this patch %s previously.", filename)
|
||||
restart = False
|
||||
|
||||
if not xbmcvfs.exists(path):
|
||||
delete_folder()
|
||||
|
||||
|
@ -370,6 +375,8 @@ def get_objects(src, filename):
|
|||
dl.close()
|
||||
del response
|
||||
|
||||
settings('appliedPatch', filename)
|
||||
|
||||
unzip(path, temp, "objects")
|
||||
|
||||
return restart
|
||||
|
|
Loading…
Reference in a new issue