aboutsummaryrefslogtreecommitdiff
path: root/spotify.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-21 17:50:51 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-21 17:50:51 +0200
commiteb76608e7287db4b26d877deccce138daee849da (patch)
tree9117519023cf91b48cbcb28e69be90e0f16b345b /spotify.go
parent0db007609efb842f43d837988eff15b31765f615 (diff)
downloadWRMS-eb76608e7287db4b26d877deccce138daee849da.tar.gz
WRMS-eb76608e7287db4b26d877deccce138daee849da.zip
add OnSongFinished backend hook allowing to remove uploaded songs
Diffstat (limited to 'spotify.go')
-rw-r--r--spotify.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/spotify.go b/spotify.go
index c07bad9..8a32fc6 100644
--- a/spotify.go
+++ b/spotify.go
@@ -49,6 +49,8 @@ func NewSpotify() (*SpotifyBackend, error) {
return &spotify, nil
}
+func (_ *SpotifyBackend) OnSongFinished(*Song) {}
+
func (spotify *SpotifyBackend) Play(song *Song, player *Player) {
trackID := song.Uri
session := spotify.session