A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Fix index out of range
Svilen Markovbb9cb03c8a9a
diff --git a/internal/glance/widget-videos.go b/internal/glance/widget-videos.goindex c67fbbe..fdc654c 100644--- a/internal/glance/widget-videos.go+++ b/internal/glance/widget-videos.go@@ -52,10 +52,11 @@ func (widget *videosWidget) initialize() error {// playlists are separate things rather than specifying a list of channels and some of// them awkwardly have a "playlist:" prefixif len(widget.Playlists) > 0 {+ initialLen := len(widget.Channels)widget.Channels = append(widget.Channels, make([]string, len(widget.Playlists))...)for i := range widget.Playlists {- widget.Channels[len(widget.Channels)-1+i] = "playlist:" + widget.Playlists[i]+ widget.Channels[initialLen+i] = "playlist:" + widget.Playlists[i]}}