diff --git a/components/data/TVEpisodeData.bs b/components/data/TVEpisodeData.bs index 8991446a3..df979dd59 100644 --- a/components/data/TVEpisodeData.bs +++ b/components/data/TVEpisodeData.bs @@ -1,4 +1,7 @@ +import "pkg:/source/utils/misc.bs" + sub setFields() + if not isValid(m.top.json) then return datum = m.top.json m.top.id = datum.id @@ -10,7 +13,7 @@ sub setFields() end sub sub setPoster() - if m.top.image <> invalid + if isValid(m.top.image) m.top.posterURL = m.top.image.url else m.top.posterURL = ""