not all movies have connections

This commit is contained in:
j 2023-07-06 18:13:26 +05:30
parent baec9c4ea6
commit e6782b3c17

View file

@ -123,6 +123,8 @@ def tech_spec(metadata):
def movie_connections(metadata): def movie_connections(metadata):
connections = {} connections = {}
if 'props' not in metadata:
return connections
for row in metadata['props']['pageProps']['contentData']['categories']: for row in metadata['props']['pageProps']['contentData']['categories']:
title = { title = {
}.get(row['name'], row['name']) }.get(row['name'], row['name'])