Fix AttributeErrors

This commit is contained in:
croneter 2018-11-06 12:35:02 +01:00
parent b7fa4f2c7b
commit 2e8be9ec6b

View file

@ -1307,7 +1307,7 @@ class API(object):
artworks = self.lookup_fanart_tv(external_id, artworks) artworks = self.lookup_fanart_tv(external_id, artworks)
else: else:
LOG.info('Did not find a set/collection ID on TheMovieDB using %s.' LOG.info('Did not find a set/collection ID on TheMovieDB using %s.'
' Artwork will be missing.', self.titles()[0]) ' Artwork will be missing.', self.title())
return artworks return artworks
def should_stream(self): def should_stream(self):
@ -1555,7 +1555,7 @@ class API(object):
""" """
Use for photo items only Use for photo items only
""" """
title, _ = self.titles() title = self.title()
if listitem is None: if listitem is None:
listitem = ListItem(title) listitem = ListItem(title)
else: else:
@ -1586,7 +1586,7 @@ class API(object):
Returns XBMC listitem for this PMS library item Returns XBMC listitem for this PMS library item
""" """
title, sorttitle = self.titles() title = self.title()
typus = self.plex_type() typus = self.plex_type()
if listitem is None: if listitem is None:
@ -1607,7 +1607,7 @@ class API(object):
'cast': people['Cast'], 'cast': people['Cast'],
'director': people['Director'], 'director': people['Director'],
'plot': self.plot(), 'plot': self.plot(),
'sorttitle': sorttitle, 'sorttitle': self.sorttitle(),
'duration': userdata['Runtime'], 'duration': userdata['Runtime'],
'studio': self.music_studio_list(), 'studio': self.music_studio_list(),
'tagline': self.tagline(), 'tagline': self.tagline(),