mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
See details
- Only sync at startup - Allow websocket to delete episodes - NoneType fix
This commit is contained in:
parent
0d616fef94
commit
478470607c
4 changed files with 29 additions and 29 deletions
|
@ -17,6 +17,7 @@ from ClientInformation import ClientInformation
|
|||
from DownloadUtils import DownloadUtils
|
||||
from PlaybackUtils import PlaybackUtils
|
||||
from LibrarySync import LibrarySync
|
||||
from WriteKodiDB import WriteKodiDB
|
||||
import Utils as utils
|
||||
|
||||
_MODE_BASICPLAY=12
|
||||
|
@ -203,7 +204,13 @@ class WebSocketThread(threading.Thread):
|
|||
# doing items removed
|
||||
itemsRemoved = data.get("ItemsRemoved")
|
||||
self.logMsg("Message : Doing LibraryChanged : Items Removed : " + str(itemsRemoved), 0)
|
||||
|
||||
itemsRemoved = data.get("ItemsRemoved")
|
||||
for item in itemsRemoved:
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
itemInfo=WINDOW.getProperty(item)
|
||||
if "episode" in itemInfo:
|
||||
type, tvshowid, episodeid = WINDOW.getProperty(item).split(";;")
|
||||
xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.RemoveEpisode", "params": { "episodeid": %i}, "id": 1 }' %int(episodeid))
|
||||
# doing adds and updates
|
||||
itemsAdded = data.get("ItemsAdded")
|
||||
self.logMsg("Message : Doing LibraryChanged : Items Added : " + str(itemsAdded), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue