瀏覽代碼

Change custom order to live

Svilen Markov 1 年之前
父節點
當前提交
5e9635a76f
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      docs/configuration.md
  2. 2 2
      internal/widget/twitch-channels.go

+ 1 - 1
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.

+ 2 - 2
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()
 	}