Add filtering to LiveTV Channel List & TV Shows
This commit is contained in:
parent
d65a57cbde
commit
451be6bdf2
|
@ -131,7 +131,10 @@ sub SetUpOptions()
|
||||||
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" },
|
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating" },
|
||||||
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
|
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
|
||||||
]
|
]
|
||||||
options.filter = []
|
options.filter = [
|
||||||
|
{ "Title": tr("All"), "Name": "All" },
|
||||||
|
{ "Title": tr("Favorites"), "Name": "Favorites" }
|
||||||
|
]
|
||||||
'Live TV
|
'Live TV
|
||||||
else if m.top.parentItem.collectionType = "livetv"
|
else if m.top.parentItem.collectionType = "livetv"
|
||||||
options.views = [
|
options.views = [
|
||||||
|
@ -141,7 +144,10 @@ sub SetUpOptions()
|
||||||
options.sort = [
|
options.sort = [
|
||||||
{ "Title": tr("TITLE"), "Name": "SortName" }
|
{ "Title": tr("TITLE"), "Name": "SortName" }
|
||||||
]
|
]
|
||||||
options.filter = []
|
options.filter = [
|
||||||
|
{ "Title": tr("All"), "Name": "All" },
|
||||||
|
{ "Title": tr("Favorites"), "Name": "Favorites" }
|
||||||
|
]
|
||||||
else
|
else
|
||||||
options.views = [
|
options.views = [
|
||||||
{ "Title": tr("Default"), "Name": "default" }
|
{ "Title": tr("Default"), "Name": "default" }
|
||||||
|
|
|
@ -30,6 +30,7 @@ sub loadItems()
|
||||||
' do nothing
|
' do nothing
|
||||||
else if filter = "Favorites"
|
else if filter = "Favorites"
|
||||||
params.append({ Filters: "IsFavorite" })
|
params.append({ Filters: "IsFavorite" })
|
||||||
|
params.append({ isFavorite: true})
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if m.top.ItemType <> ""
|
if m.top.ItemType <> ""
|
||||||
|
@ -38,6 +39,7 @@ sub loadItems()
|
||||||
|
|
||||||
if m.top.ItemType = "LiveTV"
|
if m.top.ItemType = "LiveTV"
|
||||||
url = "LiveTv/Channels"
|
url = "LiveTv/Channels"
|
||||||
|
params.append({ userId: get_setting("active_user") })
|
||||||
else
|
else
|
||||||
url = Substitute("Users/{0}/Items/", get_setting("active_user"))
|
url = Substitute("Users/{0}/Items/", get_setting("active_user"))
|
||||||
end if
|
end if
|
||||||
|
|
Loading…
Reference in New Issue
Block a user