From 367fadb1b1dc6b6a665efc49c44b3009f31af917 Mon Sep 17 00:00:00 2001 From: lusum Date: Wed, 25 Sep 2013 20:34:25 +0200 Subject: [PATCH] Fixing labels --- default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.py b/default.py index 3ce466c..2f969c9 100644 --- a/default.py +++ b/default.py @@ -49,7 +49,7 @@ def addLinks(elem): for node in elem: cm = [] liz=xbmcgui.ListItem(label=node.findtext("title").encode("utf-8"), thumbnailImage=node.findtext("art")) - liz.setInfo( "music", { "title": node.findtext("title").encode("utf-8"), "artist": node.findtext("artist"), "album": node.findtext("album"), "ReleaseDate": str(node.findtext("year")) } ) + liz.setInfo( "music", { "title": node.findtext("title").encode("utf-8"), "artist": node.findtext("artist"), "album": node.findtext("album"), "size": node.findtext("size"), "duration": node.findtext("time"), "year": str(node.findtext("year")) } ) liz.setProperty("mimetype", 'audio/mpeg') liz.setProperty("IsPlayable", "true") song_elem = node.find("song") @@ -73,7 +73,7 @@ def play_track(id): for thisnode in elem: node = thisnode li = xbmcgui.ListItem(label=node.findtext("title").encode("utf-8"), thumbnailImage=node.findtext("art"), path=node.findtext("url")) - li.setInfo("music", { "artist" : node.findtext("artist") , "album" : node.findtext("album") , "title": node.findtext("title") }) + li.setInfo("music", { "artist" : node.findtext("artist") , "album" : node.findtext("album") , "title": node.findtext("title") , "duration": node.findtext("time"), "size": node.findtext("size") }) xbmcplugin.setResolvedUrl(handle=int(sys.argv[1]), succeeded=True, listitem=li) # Main function for adding xbmc plugin elements