fix for missing artists links in kodi

This commit is contained in:
Marcel van der Veldt 2015-05-08 02:44:32 +02:00
parent 3579fa3ca8
commit acef00f2bb
2 changed files with 29 additions and 12 deletions

View file

@ -131,6 +131,15 @@ class ReadEmbyDB():
if (jsonData[u'Items'] != ""):
result = jsonData[u'Items']
#only return valid albums - which have artists
tempresult = []
for item in result:
if item["AlbumArtists"]:
tempresult.append(item)
result = tempresult
# Work around to only return items from the given list
if (result != None and len(result) > 0 and len(itemList) > 0):
newResult = []