Fix paging in libraries

This commit is contained in:
Neil Burrows 2020-03-13 16:41:59 +00:00
parent 9c639ba005
commit f77a662dfb
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
<field id="collectionSelected" alias="picker.itemSelected" />
<field id="objects" alias="picker.objects" />
<field id="pageNumber" type="integer" />
<field id="library" type="node" />
<field id="library" type="associativeArray" />
</interface>
<script type="text/brightscript" uri="scene.brs" />
</component>

View File

@ -9,7 +9,7 @@
<field id="movieSelected" alias="picker.itemSelected" />
<field id="objects" alias="picker.objects" />
<field id="pageNumber" type="integer" />
<field id="library" type="node" />
<field id="library" type="associativeArray" />
</interface>
<script type="text/brightscript" uri="scene.brs" />
</component>

View File

@ -9,7 +9,7 @@
<field id="seriesSelected" alias="picker.itemSelected" />
<field id="objects" alias="picker.objects" />
<field id="pageNumber" type="integer" />
<field id="library" type="node" />
<field id="library" type="associativeArray" />
</interface>
<script type="text/brightscript" uri="scene.brs" />
</component>

View File

@ -239,11 +239,11 @@ sub Main()
group.pageNumber = msg.getRoSGNode().pageSelected
if group.library = invalid
' Cover this case first to avoid "invalid.type" calls
else if group.library.type = "movies"
else if group.library.CollectionType = "movies"
MovieLister(group, m.page_size)
else if group.library.type = "boxsets"
else if group.library.CollectionType = "boxsets"
CollectionLister(group, m.page_size)
else if group.library.type = "tvshows"
else if group.library.CollectionType = "tvshows"
SeriesLister(group, m.page_size)
end if
' TODO - abstract away the "picker" node