Added sort options to channel live streams

This commit is contained in:
Brahim Hadriche committed 2024-07-10 23:11:34 -04:00
1 parent 37f049867d
commit 4991c42507
2 files changed
+13 -2

No files matched your search

+3 -1
View File
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
- Nothing worth mentioning yet. ## Added
- Sort options to channel live streams
## [0.24.6] - 2024-07-08 ## [0.24.6] - 2024-07-08
@@ -200,7 +200,6 @@ function InitializeTabs()
end function end function
function InitializeSortOptions() function InitializeSortOptions()
' TODO:P1 add sort options for streams https://github.com/iv-org/invidious/pull/4224
m.sortOptions = { m.sortOptions = {
"channel_videos": [{ "channel_videos": [{
"id": "newest" "id": "newest"
@@ -212,6 +211,16 @@ function InitializeSortOptions()
"id": "oldest" "id": "oldest"
"title": "Oldest" "title": "Oldest"
}] }]
"channel_streams": [{
"id": "newest"
"title": "Latest"
}, {
"id": "popular"
"title": "Popular"
}, {
"id": "oldest"
"title": "Oldest"
}]
"channel_playlists": [{ "channel_playlists": [{
"id": "newest" "id": "newest"
"title": "Date added (newest)" "title": "Date added (newest)"