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':
"""
elements = []
for extra in self.item.find('Extras'):
for extra in self.item.findall('Extras'):
# Trailer:
key = extra.attrib.get('key', None)
title = extra.attrib.get('title', None)