We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8a4d39 commit bb9cb03Copy full SHA for bb9cb03
internal/glance/widget-videos.go
@@ -52,10 +52,11 @@ func (widget *videosWidget) initialize() error {
52
// playlists are separate things rather than specifying a list of channels and some of
53
// them awkwardly have a "playlist:" prefix
54
if len(widget.Playlists) > 0 {
55
+ initialLen := len(widget.Channels)
56
widget.Channels = append(widget.Channels, make([]string, len(widget.Playlists))...)
57
58
for i := range widget.Playlists {
- widget.Channels[len(widget.Channels)-1+i] = "playlist:" + widget.Playlists[i]
59
+ widget.Channels[initialLen+i] = "playlist:" + widget.Playlists[i]
60
}
61
62
0 commit comments