From 78bb77fdcb576e42ad68c4b6b5dfc910e0add5b1 Mon Sep 17 00:00:00 2001 From: gonev Date: Wed, 7 Nov 2012 09:44:36 +0000 Subject: [PATCH] Fixed code indentation. --- default.py | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/default.py b/default.py index 6258f21..34fd7da 100644 --- a/default.py +++ b/default.py @@ -37,33 +37,33 @@ def getParameters(parameterString): return commands def addFolderListItem(item_params = {}, size = 0): - item = item_params.get - - icon = "DefaultFolder.png" - if (item("thumbnail" , "DefaultFolder.png").find("http://") == -1): - thumbnail = "DefaultFolder.png" - else: - thumbnail = item("thumbnail") + item = item_params.get - listitem = xbmcgui.ListItem(item("Title"), iconImage=icon, thumbnailImage=thumbnail) - listitem.setInfo(type = 'video', infoLabels = {'Title': item("Title")}) - url = buildItemUrl(item_params, '%s?' % sys.argv[0]) + icon = "DefaultFolder.png" + if (item("thumbnail" , "DefaultFolder.png").find("http://") == -1): + thumbnail = "DefaultFolder.png" + else: + thumbnail = item("thumbnail") + + listitem = xbmcgui.ListItem(item("Title"), iconImage=icon, thumbnailImage=thumbnail) + listitem.setInfo(type = 'video', infoLabels = {'Title': item("Title")}) + url = buildItemUrl(item_params, '%s?' % sys.argv[0]) - xbmcplugin.addDirectoryItem(handle, url=url, listitem=listitem, isFolder=True, totalItems=size) + xbmcplugin.addDirectoryItem(handle, url=url, listitem=listitem, isFolder=True, totalItems=size) def addActionListItem(item_params = {}, size = 0): - item = item_params.get - folder = False - - icon = "DefaultFolder.png" - if (item("thumbnail" , "DefaultFolder.png").find("http://") == -1): - thumbnail = "DefaultFolder.png" - else: - thumbnail = item("thumbnail") - - listitem = xbmcgui.ListItem(item("Title"), iconImage=icon, thumbnailImage=thumbnail) - listitem.setInfo(type = 'video', infoLabels = {'Title': item("Title")}) - url = buildItemUrl(item_params, '%s?' % sys.argv[0]) + item = item_params.get + folder = False + + icon = "DefaultFolder.png" + if (item("thumbnail" , "DefaultFolder.png").find("http://") == -1): + thumbnail = "DefaultFolder.png" + else: + thumbnail = item("thumbnail") + + listitem = xbmcgui.ListItem(item("Title"), iconImage=icon, thumbnailImage=thumbnail) + listitem.setInfo(type = 'video', infoLabels = {'Title': item("Title")}) + url = buildItemUrl(item_params, '%s?' % sys.argv[0]) xbmcplugin.addDirectoryItem(handle, url=url, listitem=listitem, isFolder=folder, totalItems=size)