Just change the feed parsing code in categoryFeed.brs and showFeed.brs
Traversing: 17ms
showHomeScreen | msg = | index = 1
showHomeScreen | msg = | index = 1
device already linked, skipping registration process
list item selected | index = 1
invalid parameter of type roInvalid for <ROT:roInvalid> is not roAssociativeArra
y in function initShowFeedConnection
Current Function:
125: Function getShowsForCategoryItem(category As Object, item As Integer) As Ob
ject
126:
127: if validateParam(category, "roAssociativeArray", "getCategoryList") = f
alse return invalid
128:
129: conn = InitShowFeedConnection(category.kids[item])
130: 'conn = InitShowFeedConnection(category)
131: showList = conn.LoadShowFeed(conn)
132: return showList
133:
134: End Function
/tmp/plugin/HHAAAAgTifHi/pkg:/source/appPosterScreen.brs(131): runtime error f4:
Member function not found in BrightScript Component or interface.
131: showList = conn.LoadShowFeed(conn)
Backtrace:
Function getshowsforcategoryitem(category As Object, item As Integer) As Object
Function showposterscreen(screen As Object, category As Object) As Integer
Function displaycategoryposterscreen(category As Object) As Untyped
Function showhomescreen(screen As Untyped) As Integer
Function main() As Void
Local Variables:
category &h16 bsc:roAssociativeArray, refcnt=5
item &h02 Integer val:0
global &h07 rotINTERFACE:ifGlobal
m &h06 bsc:roAssociativeArray, refcnt=6
conn &h16 bsc:roInvalid, refcnt=1
showlist &h30 Untyped val:Uninitialized
BrightScript Debugger> ------ Running ------
Looking for conn: http://192.168.1.224/categories.xml
created feed connection for http://192.168.1.224/categories.xml
url: http://192.168.1.224/categories.xml
Took: 28ms
Parse Took: 3ms
begin category node parsing
number of categories: 4
ParseCategoryNode: banner_ad
ParseCategoryNode skip: banner_ad
parse returned no child node
ParseCategoryNode: category
category: Newly Added | Movies that have been recently added
added new child node
ParseCategoryNode: category
category: Big News | Movies that feature news
added new child node
ParseCategoryNode: category
category: College | Movies about what it's like to go to college
added new child node
Traversing: 23ms
showHomeScreen | msg = | index = 1
showHomeScreen | msg = | index = 1
device already linked, skipping registration process
list item selected | index = 1
invalid parameter of type roInvalid for <ROT:roInvalid> is not roAssociativeArra
y in function initShowFeedConnection
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
Current Function:
125: Function getShowsForCategoryItem(category As Object, item As Integer) As Ob
ject
126:
127: if validateParam(category, "roAssociativeArray", "getCategoryList") = f
alse return invalid
128:
129: conn = InitShowFeedConnection(category.kids[item])
130: 'conn = InitShowFeedConnection(category)
131: showList = conn.LoadShowFeed(conn)
132: return showList
133:
134: End Function
/tmp/plugin/JHAAAAhHGxgy/pkg:/source/appPosterScreen.brs(131): runtime error f4:
Member function not found in BrightScript Component or interface.
131: showList = conn.LoadShowFeed(conn)
Backtrace:
Function getshowsforcategoryitem(category As Object, item As Integer) As Object
Function showposterscreen(screen As Object, category As Object) As Integer
Function displaycategoryposterscreen(category As Object) As Untyped
Function showhomescreen(screen As Untyped) As Integer
Function main() As Void
Local Variables:
category &h16 bsc:roAssociativeArray, refcnt=5
item &h02 Integer val:0
global &h07 rotINTERFACE:ifGlobal
m &h06 bsc:roAssociativeArray, refcnt=6
conn &h16 bsc:roInvalid, refcnt=1
showlist &h30 Untyped val:Uninitialized
BrightScript Debugger>
is it that you just don't like the function of click down? or do you only have one category?
you don't need to use the category leafs if you don't want anyways.
"joetesta" wrote:
I got it to work! My last change was adding this line 'o.Feed = xml@feed' in CategoryFeed.brs to Function ParseCategoryNode just before this line 'elseif xml.GetName() = "categoryLeaf" then'
Function preShowDetailScreen(breadA=invalid, breadB=invalid) As Object
port=CreateObject("roMessagePort")
screen = CreateObject("roSpringboardScreen")
screen.SetDescriptionStyle("video")
screen.SetMessagePort(port)
if breadA<>invalid and breadB<>invalid then
screen.SetBreadcrumbText(breadA, breadB)
end if
Function preShowDetailScreen(breadA=invalid) As Object
port=CreateObject("roMessagePort")
screen = CreateObject("roSpringboardScreen")
screen.SetDescriptionStyle("video")
screen.SetMessagePort(port)
screen = preShowDetailScreen(category.Title, category.kids[m.curCategory].Title)
showIndex = showDetailScreen(screen, shows, showIndex)
'screen = preShowDetailScreen(category.Title, category.kids[m.curCategory].Title)
screen = preShowDetailScreen(category.Title)
showIndex = showDetailScreen(screen, shows, showIndex)
categoryList = CreateObject("roArray", 100, true)
for each subCategory in topCategory.Kids
categoryList.Push(subcategory.Title)
next
return categoryList
categoryList = CreateObject("roArray", 100, true)
categoryList = topCategory
return categoryList
conn = InitShowFeedConnection(category.kids[item])
conn = InitShowFeedConnection(category)
o.HDPosterURL = xml@hd_img
o.HDPosterURL = xml@hd_img
o.Feed = xml@feed
kid.HDPosterURL = xml@hd_img
o.AddKid(kid)
kid.HDPosterURL = xml@hd_img
kid.Feed = e@feed
o.AddKid(kid)