Add button to refresh Scrobble activity

This commit is contained in:
Claudio Ortolina
2024-11-17 21:55:43 +00:00
parent 1936075bc0
commit e0ac8d1923
3 changed files with 36 additions and 7 deletions
@@ -77,6 +77,11 @@ defmodule MusicLibraryWeb.StatsLive.Index do
end
end
def handle_event("refresh_lastfm_feed", _, socket) do
LastFm.Refresh.refresh()
{:noreply, socket}
end
def handle_info(%{tracks: recent_tracks}, socket) do
release_ids =
recent_tracks