diff --git a/resources/lib/ReadKodiDB.py b/resources/lib/ReadKodiDB.py index a6636077..a7d7429a 100644 --- a/resources/lib/ReadKodiDB.py +++ b/resources/lib/ReadKodiDB.py @@ -175,7 +175,7 @@ class ReadKodiDB(): xbmc.sleep(sleepVal) episodes = None if fullInfo: - json_response = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": {"tvshowid": %d, "properties": ["title", "playcount", "plot", "season", "episode", "showtitle", "file", "lastplayed", "rating", "resume", "art", "streamdetails", "firstaired", "runtime", "writer", "cast", "dateadded","uniqueid"], "sort": {"method": "episode"}}, "id": 1}' %KodiTvShowId) + json_response = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": {"tvshowid": %d, "properties": ["title", "playcount", "plot", "season", "episode", "showtitle", "file", "lastplayed", "rating", "resume", "art", "streamdetails", "firstaired", "runtime", "writer", "cast", "director", "dateadded","uniqueid"], "sort": {"method": "episode"}}, "id": 1}' %KodiTvShowId) else: json_response = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": {"tvshowid": %d, "properties": ["title", "playcount", "season", "episode", "lastplayed", "resume","file","uniqueid"], "sort": {"method": "episode"}}, "id": 1}' %KodiTvShowId) jsonobject = json.loads(json_response.decode('utf-8','replace')) diff --git a/resources/lib/WriteKodiDB.py b/resources/lib/WriteKodiDB.py index 6eaab650..f2651901 100644 --- a/resources/lib/WriteKodiDB.py +++ b/resources/lib/WriteKodiDB.py @@ -411,6 +411,8 @@ class WriteKodiDB(): changes |= self.updateProperty(KodiItem,"title",title,"episode") changes |= self.updatePropertyArray(KodiItem,"writer",people.get("Writer"),"episode") + changes |= self.updatePropertyArray(KodiItem,"director",people.get("Director"),"episode") + #add actors changes |= self.AddActorsToMedia(KodiItem,MBitem.get("People"),"episode", connection, cursor)