When I'm parsing the xml feed, of which I only grab 20 items at a time, I add one more value that is not in the feed to each posteritem, which is
action="play"
I have a calculation I do to see if any paging has been done. If it has not I add an "empty" item that pretty much just contains an image and action="next" (in TheEndless way of doing it, he would probably have {action:"next"}
If there has been any paging, I have an index variable that controls the offset from the top of the xmllist, if it is greater than 0 then I also add an action="previous" on the beginning of the posterlist.
in my if/then statements I check all my indexes and also the action - action="play" means it is a media item, action="none" means there was a server error and there is a bad item, action="previous" or "next" means add 20 or subtract 20 from the offset and get the next batch of poster items from the server.
- Hope that helps.
- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!