Fix for empty studios

This commit is contained in:
xnappo 2015-03-18 15:03:20 -05:00
parent 1a95c2abf6
commit b5214ad8ba

View file

@ -94,10 +94,12 @@ class API():
if item.get("SeriesStudio") != None and item.get("SeriesStudio") != '': if item.get("SeriesStudio") != None and item.get("SeriesStudio") != '':
studios.append(item.get("SeriesStudio")) studios.append(item.get("SeriesStudio"))
else: else:
if(item.get("Studios") != None): if(item.get("Studios") != [] and item.get("Studios") != None):
for studio_string in item.get("Studios"): for studio_string in item.get("Studios"):
temp=studio_string.get("Name") temp=studio_string.get("Name")
studios.append(temp) studios.append(temp)
else:
studios.append("")
return studios return studios
def getMediaStreams(self, item, mediaSources=False): def getMediaStreams(self, item, mediaSources=False):