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") != '':
studios.append(item.get("SeriesStudio"))
else:
if(item.get("Studios") != None):
if(item.get("Studios") != [] and item.get("Studios") != None):
for studio_string in item.get("Studios"):
temp=studio_string.get("Name")
studios.append(temp)
else:
studios.append("")
return studios
def getMediaStreams(self, item, mediaSources=False):