From: Clinton Ebadi Date: Sun, 26 Apr 2015 23:21:20 +0000 (-0400) Subject: Ignore if artists exist and only show verified albums X-Git-Url: https://git.hcoop.net/clinton/xbmc-groove.git/commitdiff_plain/c2ea4e65741b0a4332827b34d60ea85a1869c6b0 Ignore if artists exist and only show verified albums Checking for artist existence and album existence slow things down excessively. --- diff --git a/default.py b/default.py index 7528a13..cce1bbd 100644 --- a/default.py +++ b/default.py @@ -823,7 +823,7 @@ class Grooveshark: while i < n: album = albums[i] albumID = album[3] - if isverified or groovesharkApi.getDoesAlbumExist(albumID): + if isverified: albumArtistName = album[0] albumName = album[2] albumImage = self._get_icon(album[4], 'album-' + str(albumID)) @@ -848,11 +848,8 @@ class Grooveshark: while i < n: artist = artists[i] artistID = artist[1] - if groovesharkApi.getDoesArtistExist(artistID): - artistName = artist[0] - self._add_dir(artistName, '', MODE_ARTIST, self.artistImg, artistID, itemsExisting) - else: - itemsExisting = itemsExisting - 1 + artistName = artist[0] + self._add_dir(artistName, '', MODE_ARTIST, self.artistImg, artistID, itemsExisting) i = i + 1 xbmcplugin.setContent(self._handle, 'artists') xbmcplugin.addSortMethod(self._handle, xbmcplugin.SORT_METHOD_ARTIST_IGNORE_THE)