From 5e9635a76feea2ac684e2e3966bb6b43bd6e5ec2 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 18 May 2024 11:01:34 +0100 Subject: [PATCH] Change custom order to live --- docs/configuration.md | 2 +- internal/widget/twitch-channels.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() }