mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 16:31:11 +00:00
Merge pull request #663 from candry7731/Sort-Collections-&-Boxsets
Update Boxset options
This commit is contained in:
commit
64a3a076aa
@ -133,7 +133,7 @@ sub loadInitialItems()
|
||||
showTvGuide()
|
||||
end if
|
||||
|
||||
else if m.top.parentItem.collectionType = "CollectionFolder" or m.top.parentItem.type = "CollectionFolder" or m.top.parentItem.collectionType = "boxsets" or m.top.parentItem.Type = "Folder" or m.top.parentItem.Type = "Channel"
|
||||
else if m.top.parentItem.collectionType = "CollectionFolder" or m.top.parentItem.type = "CollectionFolder" or m.top.parentItem.collectionType = "boxsets" or m.top.parentItem.Type = "Boxset" or m.top.parentItem.Type = "Folder" or m.top.parentItem.Type = "Channel"
|
||||
' Non-recursive, to not show subfolder contents
|
||||
m.loadItemsTask.recursive = false
|
||||
else if m.top.parentItem.collectionType = "Channel"
|
||||
@ -259,7 +259,11 @@ end sub
|
||||
|
||||
' Return parent collection type
|
||||
function getCollectionType() as string
|
||||
return m.top.parentItem.collectionType
|
||||
if m.top.parentItem.collectionType = invalid
|
||||
return m.top.parentItem.Type
|
||||
else
|
||||
return m.top.parentItem.CollectionType
|
||||
end if
|
||||
end function
|
||||
|
||||
' Search string array for search value. Return if it's found
|
||||
@ -276,10 +280,9 @@ sub SetUpOptions()
|
||||
options = {}
|
||||
options.filter = []
|
||||
options.favorite = []
|
||||
|
||||
if getCollectionType() = "movies"
|
||||
setMoviesOptions(options)
|
||||
else if getCollectionType() = "boxsets"
|
||||
else if inStringArray(["boxsets", "Boxset"], getCollectionType())
|
||||
setBoxsetsOptions(options)
|
||||
else if getCollectionType() = "tvshows"
|
||||
setTvShowsOptions(options)
|
||||
|
Loading…
Reference in New Issue
Block a user