AttributeError: 'list' object has no attribute 'get' (#45)
This commit is contained in:
parent
1fdc18f73a
commit
e7c06c7966
@ -539,7 +539,7 @@ class ContentApi:
|
|||||||
nodeid=data.get('pageInfo', {}).get('nodeId'),
|
nodeid=data.get('pageInfo', {}).get('nodeId'),
|
||||||
path=data.get('link').lstrip('/'),
|
path=data.get('link').lstrip('/'),
|
||||||
channel=data.get('pageInfo', {}).get('site'),
|
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'),
|
title=data.get('title'),
|
||||||
description=data.get('pageInfo', {}).get('description'),
|
description=data.get('pageInfo', {}).get('description'),
|
||||||
cover=data.get('image'),
|
cover=data.get('image'),
|
||||||
|
Loading…
Reference in New Issue
Block a user