Render recently scrobbled tracks in stats

This commit is contained in:
Claudio Ortolina
2024-11-04 12:04:13 +00:00
parent d818cdbae5
commit 7139e0ad8f
5 changed files with 49 additions and 12 deletions
+1 -5
View File
@@ -15,7 +15,7 @@ defmodule MusicLibrary.Application do
repos: Application.fetch_env!(:music_library, :ecto_repos), skip: skip_migrations?()},
{DNSCluster, query: Application.get_env(:music_library, :dns_cluster_query) || :ignore},
{Phoenix.PubSub, name: MusicLibrary.PubSub},
{LastFm.Supervisor, api: last_fm()},
LastFm.Supervisor,
# Start a worker by calling: MusicLibrary.Worker.start_link(arg)
# {MusicLibrary.Worker, arg},
# Start to serve requests, typically the last entry
@@ -40,8 +40,4 @@ defmodule MusicLibrary.Application do
# By default, sqlite migrations are run when using a release
System.get_env("RELEASE_NAME") != nil
end
defp last_fm do
Application.get_env(:music_library, :last_fm, LastFm.APIImpl)
end
end