mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
error handling
This commit is contained in:
parent
550c1cc4fb
commit
50d83dee7e
1 changed files with 8 additions and 3 deletions
|
@ -634,8 +634,10 @@ class LibrarySync(threading.Thread):
|
||||||
for item in itemList:
|
for item in itemList:
|
||||||
|
|
||||||
MBitem = ReadEmbyDB().getItem(item)
|
MBitem = ReadEmbyDB().getItem(item)
|
||||||
itemType = MBitem.get('Type', "")
|
try:
|
||||||
|
itemType = MBitem.get('Type', "")
|
||||||
|
except:
|
||||||
|
itemType = ""
|
||||||
#### PROCESS EPISODES ######
|
#### PROCESS EPISODES ######
|
||||||
if "Episode" in itemType:
|
if "Episode" in itemType:
|
||||||
|
|
||||||
|
@ -687,7 +689,10 @@ class LibrarySync(threading.Thread):
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
for item in itemList:
|
for item in itemList:
|
||||||
MBitem = ReadEmbyDB().getItem(item)
|
MBitem = ReadEmbyDB().getItem(item)
|
||||||
itemType = MBitem.get('Type', "")
|
try:
|
||||||
|
itemType = MBitem.get('Type', "")
|
||||||
|
except:
|
||||||
|
itemType = ""
|
||||||
if "MusicArtist" in itemType:
|
if "MusicArtist" in itemType:
|
||||||
WriteKodiMusicDB().addOrUpdateArtistToKodiLibrary(MBitem["Id"],connection, cursor)
|
WriteKodiMusicDB().addOrUpdateArtistToKodiLibrary(MBitem["Id"],connection, cursor)
|
||||||
if "MusicAlbum" in itemType:
|
if "MusicAlbum" in itemType:
|
||||||
|
|
Loading…
Reference in a new issue