mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix music library compare
Ignore views
This commit is contained in:
parent
030e557829
commit
6147475629
1 changed files with 8 additions and 11 deletions
|
@ -69,20 +69,17 @@ class Music(Items):
|
||||||
return actions.get(action)
|
return actions.get(action)
|
||||||
|
|
||||||
def compare_all(self):
|
def compare_all(self):
|
||||||
# Pull the list of artists, albums, songs
|
|
||||||
views = self.emby_db.getView_byType('music')
|
|
||||||
|
|
||||||
for view in views:
|
# Process artists
|
||||||
# Process artists
|
self.compare_artists()
|
||||||
self.compare_artists(view)
|
# Process albums
|
||||||
# Process albums
|
self.compare_albums()
|
||||||
self.compare_albums()
|
# Process songs
|
||||||
# Process songs
|
self.compare_songs()
|
||||||
self.compare_songs()
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def compare_artists(self, view):
|
def compare_artists(self):
|
||||||
|
|
||||||
all_embyartistsIds = set()
|
all_embyartistsIds = set()
|
||||||
update_list = list()
|
update_list = list()
|
||||||
|
@ -92,7 +89,7 @@ class Music(Items):
|
||||||
|
|
||||||
artists = dict(self.emby_db.get_checksum('MusicArtist'))
|
artists = dict(self.emby_db.get_checksum('MusicArtist'))
|
||||||
album_artists = dict(self.emby_db.get_checksum('AlbumArtist'))
|
album_artists = dict(self.emby_db.get_checksum('AlbumArtist'))
|
||||||
emby_artists = self.emby.getArtists(view['id'], dialog=self.pdialog)
|
emby_artists = self.emby.getArtists(dialog=self.pdialog)
|
||||||
|
|
||||||
for item in emby_artists['Items']:
|
for item in emby_artists['Items']:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue