mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
More delete cleanup
This commit is contained in:
parent
95db6e4b3f
commit
5b55a4bce1
1 changed files with 0 additions and 3 deletions
|
@ -970,11 +970,8 @@ class WriteKodiDB():
|
||||||
episode = ReadKodiDB().getKodiEpisodeByMbItem(episodeid, tvshowid)
|
episode = ReadKodiDB().getKodiEpisodeByMbItem(episodeid, tvshowid)
|
||||||
if episode != None:
|
if episode != None:
|
||||||
WINDOW = xbmcgui.Window( 10000 )
|
WINDOW = xbmcgui.Window( 10000 )
|
||||||
WINDOW.setProperty("suspendDeletes", "True")
|
|
||||||
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.RemoveEpisode", "params": { "episodeid": %i}, "id": 1 }' %(episode["episodeid"]))
|
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.RemoveEpisode", "params": { "episodeid": %i}, "id": 1 }' %(episode["episodeid"]))
|
||||||
|
|
||||||
while WINDOW.getProperty("suspendDeletes") == "True":
|
|
||||||
xbmc.sleep(100)
|
|
||||||
utils.logMsg("episode deleted succesfully!",episodeid)
|
utils.logMsg("episode deleted succesfully!",episodeid)
|
||||||
else:
|
else:
|
||||||
utils.logMsg("episode not found in kodi DB",episodeid)
|
utils.logMsg("episode not found in kodi DB",episodeid)
|
||||||
|
|
Loading…
Reference in a new issue