mirror of
https://github.com/Xevion/glance.git
synced 2025-12-15 16:11:52 -06:00
Use constant for the prefix
This commit is contained in:
@@ -56,7 +56,7 @@ func (widget *videosWidget) initialize() error {
|
|||||||
widget.Channels = append(widget.Channels, make([]string, len(widget.Playlists))...)
|
widget.Channels = append(widget.Channels, make([]string, len(widget.Playlists))...)
|
||||||
|
|
||||||
for i := range widget.Playlists {
|
for i := range widget.Playlists {
|
||||||
widget.Channels[initialLen+i] = "playlist:" + widget.Playlists[i]
|
widget.Channels[initialLen+i] = videosWidgetPlaylistPrefix + widget.Playlists[i]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user