diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 30e2899..06311f6 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -20,8 +20,12 @@ const ( SongTimeFormat = "2006 15:04-0700" bufferSizePerLine = 512 - separatorOne = 26 - separatorTwo = 38 + 1 + // Positions of first and second "|" separator on playlist.log line. + // The third one may float if amount of listeners will be >= 10. + separatorOne = 26 + // +1 added to a second one just because it is used only at a start pos of + // a listeners' field, so there's no need to increment it every time. + separatorTwo = 38 + 1 ) var (