Skip to content
This repository has been archived by the owner on Jan 28, 2018. It is now read-only.

Commit

Permalink
Fixed code indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonev committed Nov 7, 2012
1 parent 052112b commit 78bb77f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions default.py
Expand Up @@ -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)

Expand Down

0 comments on commit 78bb77f

Please sign in to comment.