ability to reference source type
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user