Fix TypeError if no extras available

- Fixes #123
This commit is contained in:
tomkat83 2016-10-13 11:27:31 +02:00
parent 83f05037b8
commit c747e915b1

View file

@ -1721,7 +1721,7 @@ class API():
'year': 'year':
""" """
elements = [] elements = []
for extra in self.item.find('Extras'): for extra in self.item.findall('Extras'):
# Trailer: # Trailer:
key = extra.attrib.get('key', None) key = extra.attrib.get('key', None)
title = extra.attrib.get('title', None) title = extra.attrib.get('title', None)