From b11e9c290292516a59ebb1e6f238b7630481102e Mon Sep 17 00:00:00 2001
From: angelblue05 <angelblue05@users.noreply.github.com>
Date: Fri, 8 Jan 2016 12:25:22 -0600
Subject: [PATCH] Fix grouped view

---
 resources/lib/librarysync.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py
index aba8e875..617aef5c 100644
--- a/resources/lib/librarysync.py
+++ b/resources/lib/librarysync.py
@@ -360,7 +360,7 @@ class LibrarySync(threading.Thread):
                         # This is only reserved for the detection of grouped views
                         if (grouped_view['Type'] == "UserView" and 
                             grouped_view.get('CollectionType') == mediatype and
-                            grouped_view['Id'] not in grouped_view['Path']):
+                            grouped_view['Id'] not in grouped_view.get('Path', "")):
                             # Take the name of the userview
                             foldername = grouped_view['Name']
                             break