aboutsummaryrefslogtreecommitdiff
path: root/upload.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-01 18:53:37 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-01 18:53:37 +0200
commited9682c977fb0cc5d94f4ac653e3fbb514bd8ecc (patch)
treefc588216fc8419ff86482dcb48a446f6058af34a /upload.go
parentdb21d2ec6980e31a2e9a0db60eb2fdad83b33671 (diff)
downloadWRMS-ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc.tar.gz
WRMS-ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc.zip
introduce Player interface to allow multiple player implementations
Diffstat (limited to 'upload.go')
-rw-r--r--upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload.go b/upload.go
index 15568c9..2d62f1c 100644
--- a/upload.go
+++ b/upload.go
@@ -91,7 +91,7 @@ func (b *UploadBackend) OnSongFinished(song *Song) {
os.Remove(songPath)
}
-func (b *UploadBackend) Play(song *Song, player *Player) {
+func (b *UploadBackend) Play(song *Song, player Player) {
player.PlayUri("file://" + path.Join(b.uploadDir, song.Uri))
}