mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Filter out playlists from returning in views
New server modification
This commit is contained in:
parent
d2b6eaabb3
commit
11b900e18e
1 changed files with 2 additions and 13 deletions
|
@ -327,25 +327,14 @@ class Read_EmbyServer():
|
|||
else:
|
||||
for item in items:
|
||||
|
||||
item['Name'] = item['Name']
|
||||
if item['Type'] == "Channel":
|
||||
if item['Type'] in ("Channel", "PlaylistsFolder"):
|
||||
# Filter view types
|
||||
continue
|
||||
|
||||
# 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:
|
||||
url = "{server}/emby/Library/MediaFolders?format=json"
|
||||
result = self.doUtils(url)
|
||||
|
||||
for folder in result['Items']:
|
||||
if item['Id'] == folder['Id']:
|
||||
itemtype = folder.get('CollectionType', "mixed")'''
|
||||
|
||||
if item['Name'] not in ('Collections', 'Trailers'):
|
||||
if item['Name'] not in ('Collections', 'Trailers', 'Playlists'):
|
||||
|
||||
if sortedlist:
|
||||
views.append({
|
||||
|
|
Loading…
Reference in a new issue