From 76691ea687c552eec9d84924a1b5f59e380b1c75 Mon Sep 17 00:00:00 2001 From: xnappo Date: Sun, 3 May 2015 09:42:37 -0500 Subject: [PATCH] Fixes for user views in case we decide to use them --- resources/lib/ReadEmbyDB.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/lib/ReadEmbyDB.py b/resources/lib/ReadEmbyDB.py index f436d365..edd24e2f 100644 --- a/resources/lib/ReadEmbyDB.py +++ b/resources/lib/ReadEmbyDB.py @@ -246,13 +246,13 @@ class ReadEmbyDB(): Name = view[u'Name'] total = str(view[u'ChildCount']) - type = view[u'CollectionType'] - if type == None: - type = "None" # User may not have declared the type - if type == type: + itemtype = view[u'CollectionType'] + if itemtype == None: + itemtype = "movies" # User may not have declared the type + if itemtype == type: collections.append( {'title' : Name, - 'type' : type, - 'id' : view[u'Id']}) + 'type' : type, + 'id' : view[u'Id']}) return collections def getBoxSets(self):