mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix duplicates in views
This commit is contained in:
parent
2677f98012
commit
f37fd7c983
3 changed files with 6 additions and 6 deletions
|
@ -246,10 +246,10 @@ def get_sync():
|
|||
except Exception:
|
||||
sync = {}
|
||||
|
||||
sync['Libraries'] = sync.get('Libraries', [])
|
||||
sync['Libraries'] = list(set(sync.get('Libraries', [])))
|
||||
sync['RestorePoint'] = sync.get('RestorePoint', {})
|
||||
sync['Whitelist'] = sync.get('Whitelist', [])
|
||||
sync['SortedViews'] = sync.get('SortedViews', [])
|
||||
sync['Whitelist'] = list(set(sync.get('Whitelist', [])))
|
||||
sync['SortedViews'] = list(set(sync.get('SortedViews', [])))
|
||||
|
||||
return sync
|
||||
|
||||
|
|
|
@ -152,13 +152,13 @@ def get_artists(parent_id=None, basic=False, params=None, server_id=None):
|
|||
for items in _get_items(query, server_id):
|
||||
yield items
|
||||
|
||||
def get_albums_by_artist(artist_id, basic=False, server_id=None):
|
||||
def get_albums_by_artist(artist_id, basic=False):
|
||||
|
||||
params = {
|
||||
'SortBy': "DateCreated",
|
||||
'ArtistIds': artist_id
|
||||
}
|
||||
for items in get_items(None, "MusicAlbum", basic, params, server_id):
|
||||
for items in get_items(None, "MusicAlbum", basic, params):
|
||||
yield items
|
||||
|
||||
@stop()
|
||||
|
|
|
@ -133,7 +133,7 @@ class FullSync(object):
|
|||
|
||||
self.process_library(library)
|
||||
|
||||
if not library.startswith('Boxsets:'):
|
||||
if not library.startswith('Boxsets:') and library not in self.sync['Whitelist']:
|
||||
self.sync['Whitelist'].append(library)
|
||||
|
||||
self.sync['Libraries'].pop(self.sync['Libraries'].index(library))
|
||||
|
|
Loading…
Reference in a new issue