mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
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:
parent
0a2ef0c339
commit
22f71efaf5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue