From e7c06c796631a014e32272efd78629c676b816d3 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 26 Oct 2020 09:57:23 +0100 Subject: [PATCH] AttributeError: 'list' object has no attribute 'get' (#45) --- resources/lib/viervijfzes/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/viervijfzes/content.py b/resources/lib/viervijfzes/content.py index cd75224..366844c 100644 --- a/resources/lib/viervijfzes/content.py +++ b/resources/lib/viervijfzes/content.py @@ -539,7 +539,7 @@ class ContentApi: nodeid=data.get('pageInfo', {}).get('nodeId'), path=data.get('link').lstrip('/'), channel=data.get('pageInfo', {}).get('site'), - program_title=data.get('program', {}).get('title'), + program_title=data.get('program', {}).get('title') if data.get('program') else data.get('title'), title=data.get('title'), description=data.get('pageInfo', {}).get('description'), cover=data.get('image'),