Fixing alt is array for imdb
This commit is contained in:
parent
b48c59b377
commit
b7e679a255
@ -52,9 +52,12 @@ class Imdb(SourceBase):
|
|||||||
if cover is None or len(cover) == 0:
|
if cover is None or len(cover) == 0:
|
||||||
cover = result.get("cover url", None)
|
cover = result.get("cover url", None)
|
||||||
summary = result.get("plot outline", None)
|
summary = result.get("plot outline", None)
|
||||||
|
localizedTitles = result.get("localized title")
|
||||||
|
altTitle = localizedTitles if isinstance(localizedTitles, list) else []
|
||||||
|
|
||||||
return Metadata(
|
return Metadata(
|
||||||
title=result.get("title", None),
|
title=result.get("title", None),
|
||||||
altTitle=[result.get("localized title", [])],
|
altTitle=altTitle,
|
||||||
cover=cover,
|
cover=cover,
|
||||||
banner=None,
|
banner=None,
|
||||||
summary=[] if summary is None else [
|
summary=[] if summary is None else [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user