diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-07-01 18:53:37 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-07-01 18:53:37 +0200 |
| commit | ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc (patch) | |
| tree | fc588216fc8419ff86482dcb48a446f6058af34a /youtube.go | |
| parent | db21d2ec6980e31a2e9a0db60eb2fdad83b33671 (diff) | |
| download | WRMS-ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc.tar.gz WRMS-ed9682c977fb0cc5d94f4ac653e3fbb514bd8ecc.zip | |
introduce Player interface to allow multiple player implementations
Diffstat (limited to 'youtube.go')
| -rw-r--r-- | youtube.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ func NewYoutubeBackend() *YoutubeBackend { func (_ *YoutubeBackend) OnSongFinished(*Song) {} -func (_ *YoutubeBackend) Play(song *Song, player *Player) { +func (_ *YoutubeBackend) Play(song *Song, player Player) { player.PlayUri("https://youtube.com/watch?v=" + song.Uri) } |
