Parameterize API cooldowns

This commit is contained in:
Claudio Ortolina
2026-03-01 17:17:32 +00:00
parent 854e293902
commit 919a42d355
12 changed files with 50 additions and 16 deletions
+2
View File
@@ -93,5 +93,7 @@ defmodule LastFm do
"https://www.last.fm/api/auth/?api_key=" <> last_fm_config.api_key
end
def api_cooldown, do: last_fm_config().api_cooldown
defp last_fm_config, do: LastFm.Config.resolve(:music_library)
end