mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Revert itemtype change
Since .getItem no longer returns None but returns an empty dictionary.
This commit is contained in:
parent
3aa2598c79
commit
a243b50f87
1 changed files with 4 additions and 8 deletions
|
@ -635,10 +635,8 @@ class LibrarySync(threading.Thread):
|
|||
for item in itemList:
|
||||
|
||||
MBitem = ReadEmbyDB().getItem(item)
|
||||
try:
|
||||
itemType = MBitem.get('Type', "")
|
||||
except:
|
||||
itemType = ""
|
||||
itemType = MBitem.get('Type', "")
|
||||
|
||||
#### PROCESS EPISODES ######
|
||||
if "Episode" in itemType:
|
||||
|
||||
|
@ -690,10 +688,8 @@ class LibrarySync(threading.Thread):
|
|||
cursor = connection.cursor()
|
||||
for item in itemList:
|
||||
MBitem = ReadEmbyDB().getItem(item)
|
||||
try:
|
||||
itemType = MBitem.get('Type', "")
|
||||
except:
|
||||
itemType = ""
|
||||
itemType = MBitem.get('Type', "")
|
||||
|
||||
if "MusicArtist" in itemType:
|
||||
WriteKodiMusicDB().addOrUpdateArtistToKodiLibrary(MBitem["Id"],connection, cursor)
|
||||
if "MusicAlbum" in itemType:
|
||||
|
|
Loading…
Reference in a new issue