From 73fc9861fd1e30197dee7601bc0a050c3ca78bd7 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 31 Aug 2022 00:52:50 +0400 Subject: [PATCH] Renamed Song() method to more clear name SongName(). --- internal/radio/icecast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 88a5ecc..a3036c1 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -39,7 +39,7 @@ type IcecastStatusDTO struct { } `json:"icestats"` } -func (is *IcecastStatusDTO) Song() string { +func (is *IcecastStatusDTO) SongName() string { return is.Icestats.Source.Artist + " - " + is.Icestats.Source.Title } @@ -72,7 +72,7 @@ func IcecastGetStatus(icecastURL string) (*IcecastStatus, error) { return &IcecastStatus{ ServerStartISO8601: iceStatDTO.Icestats.ServerStartISO8601, ServerStartDate: iceStatDTO.Icestats.ServerStartDate, - SongName: iceStatDTO.Song(), + SongName: iceStatDTO.SongName(), ListenerPeak: iceStatDTO.Icestats.Source.ListenerPeak, Listeners: iceStatDTO.Icestats.Source.Listeners, }, nil