diff --git a/ox/web/imdb.py b/ox/web/imdb.py index affbf99..96454f7 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -732,11 +732,14 @@ class Imdb(SiteParser): cat = c['node']['category']['text'] if cat not in connections: connections[cat] = [] - connections[cat].append({ + connection = { 'id': c['node']['associatedTitle']['id'][2:], 'title': c['node']['associatedTitle']['titleText']['text'], - 'description': c['node'].get('text') - }) + } + description = c['node'].get('text', '') + if description: + connection['description'] = description + connections[cat].append(connection) return connections