Fix view order bug

Make sure we get the default grouped view and not a view, when we are
looking at grouped folders.
This commit is contained in:
angelblue05 2016-01-04 21:48:30 -06:00
parent 0a2ef0c339
commit 22f71efaf5

View file

@ -357,8 +357,10 @@ class LibrarySync(threading.Thread):
if folderid in groupedFolders: if folderid in groupedFolders:
# Media folders are grouped into userview # Media folders are grouped into userview
for grouped_view in grouped_views: for grouped_view in grouped_views:
# This is only reserved for the detection or grouped views
if (grouped_view['Type'] == "UserView" and if (grouped_view['Type'] == "UserView" and
grouped_view.get('CollectionType') == mediatype): grouped_view.get('CollectionType') == mediatype and
grouped_view['Id'] not in grouped_view['Path']):
# Take the name of the userview # Take the name of the userview
foldername = grouped_view['Name'] foldername = grouped_view['Name']
break break