Merge pull request #452 from candry7731/master
This commit is contained in:
commit
49d3c4fa39
|
@ -8,8 +8,8 @@ sub init()
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
UserId: get_setting("active_user")
|
UserId: get_setting("active_user")
|
||||||
limit: m.top.limit,
|
'limit: m.top.limit,
|
||||||
StartIndex: m.top.startIndex
|
'StartIndex: m.top.startIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
url = "LiveTv/Channels"
|
url = "LiveTv/Channels"
|
||||||
|
@ -31,4 +31,4 @@ sub init()
|
||||||
|
|
||||||
m.top.channels = results
|
m.top.channels = results
|
||||||
|
|
||||||
end sub
|
end sub
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<component name="LoadChannelsTask" extends="Task">
|
<component name="LoadChannelsTask" extends="Task">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="limit" type="integer" value="500" />
|
<field id="limit" type="integer" value="" />
|
||||||
<field id="startIndex" type="integer" value="0" />
|
<field id="startIndex" type="integer" value="0" />
|
||||||
|
|
||||||
<!-- Total records available from server-->
|
<!-- Total records available from server-->
|
||||||
|
@ -12,4 +12,4 @@
|
||||||
<script type="text/brightscript" uri="pkg:/source/api/baserequest.brs" />
|
<script type="text/brightscript" uri="pkg:/source/api/baserequest.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||||
<!-- <script type="text/brightscript" uri="pkg:/source/api/Image.brs" /> -->
|
<!-- <script type="text/brightscript" uri="pkg:/source/api/Image.brs" /> -->
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -46,8 +46,9 @@ function getData()
|
||||||
' todo - Or get the old data? I can't remember...
|
' todo - Or get the old data? I can't remember...
|
||||||
data = CreateObject("roSGNode", "ContentNode")
|
data = CreateObject("roSGNode", "ContentNode")
|
||||||
' Do this to keep the ordering, AssociateArrays have no order
|
' Do this to keep the ordering, AssociateArrays have no order
|
||||||
type_array = ["Movie", "Series", "Episode", "AlbumArtist", "Album", "Audio", "Person"]
|
type_array = ["Movie", "Series", "TvChannel", "Episode", "AlbumArtist", "Album", "Audio", "Person"]
|
||||||
content_types = {
|
content_types = {
|
||||||
|
"TvChannel": {"label": "Channels", "count": 0},
|
||||||
"Movie": {"label": "Movies", "count": 0},
|
"Movie": {"label": "Movies", "count": 0},
|
||||||
"Series": {"label": "Shows", "count": 0},
|
"Series": {"label": "Shows", "count": 0},
|
||||||
"Episode": {"label": "Episodes", "count": 0},
|
"Episode": {"label": "Episodes", "count": 0},
|
||||||
|
|
|
@ -39,11 +39,12 @@ function SearchMedia(query as string)
|
||||||
"IncludeGenres": false,
|
"IncludeGenres": false,
|
||||||
"IncludeStudios": false,
|
"IncludeStudios": false,
|
||||||
"IncludeArtists": false,
|
"IncludeArtists": false,
|
||||||
' "IncludeItemTypes: "Movie",
|
"IncludeItemTypes": "TvChannel,Movie,BoxSet,Series,Episode,Video"
|
||||||
"EnableTotalRecordCount": false,
|
"EnableTotalRecordCount": false,
|
||||||
"ImageTypeLimit": 1,
|
"ImageTypeLimit": 1,
|
||||||
"Recursive": true
|
"Recursive": true
|
||||||
})
|
})
|
||||||
|
|
||||||
data = getJson(resp)
|
data = getJson(resp)
|
||||||
results = []
|
results = []
|
||||||
for each item in data.Items
|
for each item in data.Items
|
||||||
|
|
Loading…
Reference in New Issue
Block a user