Fix TypeErrors
This commit is contained in:
parent
ff6f056bca
commit
30a1a0a70c
1 changed files with 3 additions and 3 deletions
|
@ -1568,7 +1568,7 @@ class API(object):
|
||||||
}
|
}
|
||||||
listitem.setInfo(type='image', infoLabels=metadata)
|
listitem.setInfo(type='image', infoLabels=metadata)
|
||||||
listitem.setProperty('plot', self.plot())
|
listitem.setProperty('plot', self.plot())
|
||||||
listitem.setProperty('plexid', self.plex_id())
|
listitem.setProperty('plexid', str(self.plex_id()))
|
||||||
return listitem
|
return listitem
|
||||||
|
|
||||||
def _create_video_listitem(self,
|
def _create_video_listitem(self,
|
||||||
|
@ -1647,7 +1647,7 @@ class API(object):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
plex_id = self.plex_id()
|
plex_id = self.plex_id()
|
||||||
listitem.setProperty('plexid', plex_id)
|
listitem.setProperty('plexid', str(plex_id))
|
||||||
with PlexDB() as plexdb:
|
with PlexDB() as plexdb:
|
||||||
db_item = plexdb.item_by_id(plex_id, self.plex_type())
|
db_item = plexdb.item_by_id(plex_id, self.plex_type())
|
||||||
if db_item:
|
if db_item:
|
||||||
|
@ -1710,7 +1710,7 @@ class API(object):
|
||||||
# musicbrainzalbumartistid string (d87e52c5-bb8d-4da8-b941-9f4928627dc8)
|
# musicbrainzalbumartistid string (d87e52c5-bb8d-4da8-b941-9f4928627dc8)
|
||||||
}
|
}
|
||||||
plex_id = self.plex_id()
|
plex_id = self.plex_id()
|
||||||
listitem.setProperty('plexid', plex_id)
|
listitem.setProperty('plexid', str(plex_id))
|
||||||
if v.KODIVERSION >= 18:
|
if v.KODIVERSION >= 18:
|
||||||
with PlexDB() as plexdb:
|
with PlexDB() as plexdb:
|
||||||
db_item = plexdb.item_by_id(plex_id, self.plex_type())
|
db_item = plexdb.item_by_id(plex_id, self.plex_type())
|
||||||
|
|
Loading…
Reference in a new issue