Fix for empty studios
This commit is contained in:
parent
1a95c2abf6
commit
b5214ad8ba
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue