implemented init function
This commit is contained in:
parent
19ec6d1571
commit
018dbe1ef0
@ -43,6 +43,9 @@ func RegisterPlugin(plugin Plugin) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
namePlugins[name] = plugin
|
namePlugins[name] = plugin
|
||||||
|
|
||||||
|
plugin.Init()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package plugin
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@ -46,7 +45,6 @@ func (m Musify) RegexSong() *regexp.Regexp {
|
|||||||
|
|
||||||
func (m Musify) Search(query common.Query) ([]data.MusicObject, error) {
|
func (m Musify) Search(query common.Query) ([]data.MusicObject, error) {
|
||||||
res := []data.MusicObject{}
|
res := []data.MusicObject{}
|
||||||
fmt.Println("meow")
|
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user