From ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 1 Jul 2023 18:53:37 +0200 Subject: introduce Player interface to allow multiple player implementations --- spotify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spotify.go') diff --git a/spotify.go b/spotify.go index e0fcf65..da7f6da 100644 --- a/spotify.go +++ b/spotify.go @@ -64,7 +64,7 @@ func NewSpotify(config *SpotifyConfig) (*SpotifyBackend, error) { func (_ *SpotifyBackend) OnSongFinished(*Song) {} -func (spotify *SpotifyBackend) Play(song *Song, player *Player) { +func (spotify *SpotifyBackend) Play(song *Song, player Player) { trackID := song.Uri session := spotify.session llog.Debug("Loading track for play: %v", trackID) -- cgit v1.2.3