mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-31 23:59:35 +03:00
* lastfm album.getInfo, getAlbuminfo(2) endpoints * ... for description and reduce not found log level * address first comments * return all images * Update migration timestamp * Handle a few edge cases * Add CoverArtPriority option to retrieve albumart from external sources * Make agents methods more descriptive * Use Last.fm name consistently Co-authored-by: Deluan <deluan@navidrome.org>
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.