Merge branch 'master' into transcoding-logic-rework

This commit is contained in:
Anthony Lavado 2021-06-15 09:54:40 -04:00 committed by GitHub
commit b878193f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View File

@ -8,8 +8,8 @@ sub init()
params = {
UserId: get_setting("active_user")
limit: m.top.limit,
StartIndex: m.top.startIndex
'limit: m.top.limit,
'StartIndex: m.top.startIndex
}
url = "LiveTv/Channels"
@ -31,4 +31,4 @@ sub init()
m.top.channels = results
end sub
end sub

View File

@ -2,7 +2,7 @@
<component name="LoadChannelsTask" extends="Task">
<interface>
<field id="limit" type="integer" value="500" />
<field id="limit" type="integer" value="" />
<field id="startIndex" type="integer" value="0" />
<!-- 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/utils/config.brs" />
<!-- <script type="text/brightscript" uri="pkg:/source/api/Image.brs" /> -->
</component>
</component>

View File

@ -46,8 +46,9 @@ function getData()
' todo - Or get the old data? I can't remember...
data = CreateObject("roSGNode", "ContentNode")
' 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 = {
"TvChannel": {"label": "Channels", "count": 0},
"Movie": {"label": "Movies", "count": 0},
"Series": {"label": "Shows", "count": 0},
"Episode": {"label": "Episodes", "count": 0},

View File

@ -45,11 +45,12 @@ function SearchMedia(query as string)
"IncludeGenres": false,
"IncludeStudios": false,
"IncludeArtists": false,
' "IncludeItemTypes: "Movie",
"IncludeItemTypes": "TvChannel,Movie,BoxSet,Series,Episode,Video"
"EnableTotalRecordCount": false,
"ImageTypeLimit": 1,
"Recursive": true
})
data = getJson(resp)
results = []
for each item in data.Items