mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Fix episode tags, unspecified collection types
This commit is contained in:
parent
65b6411fb3
commit
f46b67209c
2 changed files with 19 additions and 19 deletions
|
@ -290,6 +290,7 @@ class LibrarySync():
|
|||
totalItemsDeleted = 0
|
||||
allTVShows = list()
|
||||
allMB3EpisodeIds = list() #for use with deletions
|
||||
allKodiEpisodeIds = [] # for use with deletions
|
||||
|
||||
views = ReadEmbyDB().getCollections("tvshows")
|
||||
viewCount = len(views)
|
||||
|
@ -373,7 +374,6 @@ class LibrarySync():
|
|||
|
||||
# full sync --> Tv shows and Episodes
|
||||
if fullsync:
|
||||
allKodiEpisodeIds = [] # for use with deletions
|
||||
viewTVShows = list()
|
||||
tvShowData = ReadEmbyDB().getTVShows(id = view.get('id') , fullinfo = True, fullSync = True)
|
||||
allKodiIds = set(ReadKodiDB().getKodiTvShowsIds(True))
|
||||
|
|
|
@ -258,8 +258,8 @@ class ReadEmbyDB():
|
|||
Name = Temp.encode('utf-8')
|
||||
section = item.get("CollectionType")
|
||||
itemtype = item.get("CollectionType")
|
||||
if itemtype == None:
|
||||
itemtype = "None" # User may not have declared the type
|
||||
if itemtype == None or itemtype == "":
|
||||
itemtype = "movies" # User may not have declared the type
|
||||
if itemtype == type and item.get("Name") != "Collections":
|
||||
collections.append( {'title' : item.get("Name"),
|
||||
'type' : itemtype,
|
||||
|
|
Loading…
Reference in a new issue