c8608956be
* Fix MB recording ID parameter name for ListenBrainz submission This follows the ListenBrainz API documentation. Fixes #1657 * Rename MediaFile.MbzTrackID to MbzRecordingID This better reflects the actual data. That the MusicBrainz recording ID is stored in file metadata as musicbrainz_trackid is a historical artifact. * Rename database column mbz_track_id to mbz_recording_id |
||
---|---|---|
.. | ||
lastfm | ||
listenbrainz | ||
spotify | ||
README.md | ||
agents.go | ||
agents_suite_test.go | ||
agents_test.go | ||
interfaces.go | ||
local_agent.go | ||
session_keys.go | ||
session_keys_test.go |
README.md
This folder abstracts metadata lookup into "agents". Each agent can be implemented to get as much info as the external source provides, by using a granular set of interfaces (see interfaces).
A new agent must comply with these simple implementation rules:
- Implement the
AgentName()
method. It just returns the name of the agent for logging purposes. - Implement one or more of the
*Retriever()
interfaces. That's where the agent's logic resides. - Register itself (in its
init()
function).
For an agent to be used it needs to be listed in the Agents
config option (default is "lastfm,spotify"
). The order dictates the priority of the agents
For a simple Agent example, look at the local_agent agent source code.