Fix setting int/float ListItem property

This commit is contained in:
croneter 2018-11-06 13:02:10 +01:00
parent df6cb5718a
commit 52a225eb92

View file

@ -3,6 +3,8 @@
from __future__ import absolute_import, division, unicode_literals
from xbmcgui import ListItem
from . import utils
def convert_pkc_to_listitem(pkc_listitem):
"""
@ -21,7 +23,7 @@ def convert_pkc_to_listitem(pkc_listitem):
if data['art']:
listitem.setArt(data['art'])
for key, value in data['property'].iteritems():
listitem.setProperty(key, value)
listitem.setProperty(key, utils.cast(str, value))
if data['subtitles']:
listitem.setSubtitles(data['subtitles'])
return listitem