Skip to content

A self-hosted dashboard that puts all your feeds in one place

Change custom order to live

Svilen Markov5e9635a76fee
diff --git a/docs/configuration.md b/docs/configuration.md
index 92dab52..681d3d3 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -1072,7 +1072,7 @@ A list of channels to display.
How many channels are visible before the "SHOW MORE" button appears. Set to `-1` to never collapse.
##### `sort-by`
-Can be used to specify the order in which the channels are displayed. Possible values are `viewers` and `custom`.
+Can be used to specify the order in which the channels are displayed. Possible values are `viewers` and `live`.
### Twitch top games
Display a list of games with the most viewers on Twitch.
diff --git a/internal/widget/twitch-channels.go b/internal/widget/twitch-channels.go
index 3107081..3b728b8 100644
--- a/internal/widget/twitch-channels.go
+++ b/internal/widget/twitch-channels.go
@@ -24,7 +24,7 @@ func (widget *TwitchChannels) Initialize() error {
widget.CollapseAfter = 5
}
- if widget.SortBy != "viewers" && widget.SortBy != "custom" {
+ if widget.SortBy != "viewers" && widget.SortBy != "live" {
widget.SortBy = "viewers"
}
@@ -40,7 +40,7 @@ func (widget *TwitchChannels) Update(ctx context.Context) {
if widget.SortBy == "viewers" {
channels.SortByViewers()
- } else if widget.SortBy == "custom" {
+ } else if widget.SortBy == "live" {
channels.SortByLive()
}