aboutsummaryrefslogtreecommitdiff
path: root/player.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-07-16 13:30:35 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-07-16 14:17:17 +0200
commita9b6aa1652166eb7f871735ba6833e2bdb888e50 (patch)
tree35f820f0af629ba62e4c5e41a28e487351581603 /player.go
parent53d46753d0c4b312df9c0151089eae3891aa4add (diff)
downloadWRMS-a9b6aa1652166eb7f871735ba6833e2bdb888e50.tar.gz
WRMS-a9b6aa1652166eb7f871735ba6833e2bdb888e50.zip
add more song info and preparations for advanced search
Diffstat (limited to 'player.go')
-rw-r--r--player.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.go b/player.go
index 490fb0a..461677c 100644
--- a/player.go
+++ b/player.go
@@ -14,7 +14,7 @@ import (
type Player interface {
Play(*Song)
Playing() bool
- Search(string) chan []Song
+ Search(map[string]string) chan []Song
PlayUri(string)
PlayData(io.Reader)
Pause()
@@ -232,7 +232,7 @@ func (player *MpvPlayer) _stop() {
player.mpv.Store(nil)
}
-func (player *MpvPlayer) Search(pattern string) chan []Song {
+func (player *MpvPlayer) Search(pattern map[string]string) chan []Song {
var wg sync.WaitGroup
wg.Add(len(player.Backends))