ability to reference source type

This commit is contained in:
Hazel Noack
2025-10-09 13:40:40 +02:00
parent 184ffdf2b8
commit d74a324999
3 changed files with 7 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ type Plugin interface {
RegexAlbum() *regexp.Regexp
RegexSong() *regexp.Regexp
Init()
Init(data.SourceType)
Search(query common.Query) ([]data.MusicObject, error)
@@ -44,7 +44,7 @@ func RegisterPlugin(plugin Plugin) error {
namePlugins[name] = plugin
plugin.Init()
plugin.Init(NameSourceType[name])
return nil
}