Use constant for the prefix
This commit is contained in:
parent
71112173b9
commit
ec2f710d06
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue