Fixes for user views in case we decide to use them
This commit is contained in:
parent
e91d2ff2a7
commit
76691ea687
1 changed files with 6 additions and 6 deletions
|
@ -246,10 +246,10 @@ class ReadEmbyDB():
|
||||||
Name = view[u'Name']
|
Name = view[u'Name']
|
||||||
|
|
||||||
total = str(view[u'ChildCount'])
|
total = str(view[u'ChildCount'])
|
||||||
type = view[u'CollectionType']
|
itemtype = view[u'CollectionType']
|
||||||
if type == None:
|
if itemtype == None:
|
||||||
type = "None" # User may not have declared the type
|
itemtype = "movies" # User may not have declared the type
|
||||||
if type == type:
|
if itemtype == type:
|
||||||
collections.append( {'title' : Name,
|
collections.append( {'title' : Name,
|
||||||
'type' : type,
|
'type' : type,
|
||||||
'id' : view[u'Id']})
|
'id' : view[u'Id']})
|
||||||
|
|
Loading…
Reference in a new issue