Fix setting int/float ListItem property
This commit is contained in:
parent
df6cb5718a
commit
52a225eb92
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue