Skip to content

Commit

Permalink
Version 1.2.10
Browse files Browse the repository at this point in the history
* Implemented http redirects
(http://www.diveintopython.net/http_web_services/redirects.html)
* Minor fixes and changes
  • Loading branch information
Cigaras committed Feb 3, 2017
1 parent 3cc3426 commit db0796a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ def Start():
DirectoryObject.thumb = R('icon-folder.png')
DirectoryObject.art = R('art-default.jpg')
VideoClipObject.art = R('art-default.jpg')
#NextPageObject.title = L('More...')
#NextPageObject.thumb = R('icon-next.png')

@handler(PREFIX, TITLE)
def MainMenu():
Expand Down Expand Up @@ -107,7 +105,10 @@ def ListItems(group, page = 1):
summary = summary
))
if len(items_list) > page * items_per_page:
oc.add(NextPageObject(key = Callback(ListItems, group = group, page = page + 1)))
oc.add(NextPageObject(
key = Callback(ListItems, group = group, page = page + 1),
#thumb = R('icon-next.png') # for unknown reason declaration at the Start() does not work, commented out because I like default image better
))
if len(oc) < 1:
return ObjectContainer(header = "Empty", message = "There are no more items available") # this should not ever happen
else:
Expand Down

0 comments on commit db0796a

Please sign in to comment.