From ad0f33a09ba17f3de3f0e8e578875f6e297f373b Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 4 Mar 2016 17:23:07 -0600 Subject: [PATCH] Removed the verification for mixed content Since OriginalCollectionType is now implemented server side. --- resources/lib/read_embyserver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lib/read_embyserver.py b/resources/lib/read_embyserver.py index c277d79c..962c464e 100644 --- a/resources/lib/read_embyserver.py +++ b/resources/lib/read_embyserver.py @@ -332,18 +332,18 @@ class Read_EmbyServer(): # Filter view types continue - # 11/10/2015 Review key, when it's added to server. Currently unavailable. - itemtype = item.get('OriginalCollectionType', item.get('CollectionType')) + # 3/4/2016 OriginalCollectionType is added + itemtype = item.get('OriginalCollectionType', item.get('CollectionType', "mixed")) # 11/29/2015 Remove this once OriginalCollectionType is added to stable server. # Assumed missing is mixed then. - if itemtype is None: + '''if itemtype is None: url = "{server}/emby/Library/MediaFolders?format=json" result = doUtils(url) for folder in result['Items']: if itemId == folder['Id']: - itemtype = folder.get('CollectionType', "mixed") + itemtype = folder.get('CollectionType', "mixed")''' if name not in ('Collections', 'Trailers'):