Change custom order to live

This commit is contained in:
Svilen Markov 2024-05-18 11:01:34 +01:00
parent 0681a04607
commit 5e9635a76f
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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()
}