Remove obsolete code

This commit is contained in:
croneter 2018-03-04 18:02:55 +01:00
parent 60c122523b
commit e9abce7d12

View file

@ -286,18 +286,14 @@ class API(object):
cast = [] cast = []
producer = [] producer = []
for child in self.item: for child in self.item:
try: if child.tag == 'Director':
if child.tag == 'Director': director.append(child.attrib['tag'])
director.append(child.attrib['tag']) elif child.tag == 'Writer':
elif child.tag == 'Writer': writer.append(child.attrib['tag'])
writer.append(child.attrib['tag']) elif child.tag == 'Role':
elif child.tag == 'Role': cast.append(child.attrib['tag'])
cast.append(child.attrib['tag']) elif child.tag == 'Producer':
elif child.tag == 'Producer': producer.append(child.attrib['tag'])
producer.append(child.attrib['tag'])
except KeyError:
LOG.warn('Malformed PMS answer for getPeople: %s: %s',
child.tag, child.attrib)
return { return {
'Director': director, 'Director': director,
'Writer': writer, 'Writer': writer,