mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix for tv show is not found on server
When processing episodes, if the show failed to be added.
This commit is contained in:
parent
7d9fe89806
commit
3605a48933
1 changed files with 6 additions and 2 deletions
|
@ -436,9 +436,13 @@ class LibrarySync(threading.Thread):
|
||||||
allKodiEpisodeIds = list()
|
allKodiEpisodeIds = list()
|
||||||
allEmbyEpisodeIds = list()
|
allEmbyEpisodeIds = list()
|
||||||
|
|
||||||
#get the kodi parent id
|
# Get the kodi parent id
|
||||||
cursor.execute("SELECT kodi_id FROM emby WHERE emby_id=?",(showId,))
|
cursor.execute("SELECT kodi_id FROM emby WHERE emby_id=?",(showId,))
|
||||||
kodiShowId = cursor.fetchone()[0]
|
try:
|
||||||
|
kodiShowId = cursor.fetchone()[0]
|
||||||
|
except:
|
||||||
|
self.logMsg("Unable to find show itemId:%s" % showId, 1)
|
||||||
|
return
|
||||||
|
|
||||||
allEmbyEpisodes = ReadEmbyDB().getEpisodes(showId)
|
allEmbyEpisodes = ReadEmbyDB().getEpisodes(showId)
|
||||||
allKodiEpisodes = ReadKodiDB().getKodiEpisodes(connection, cursor, kodiShowId)
|
allKodiEpisodes = ReadKodiDB().getKodiEpisodes(connection, cursor, kodiShowId)
|
||||||
|
|
Loading…
Reference in a new issue