Improve track refresh logic

This commit is contained in:
Claudio Ortolina
2025-06-02 21:00:44 +01:00
parent 3e9c719ce8
commit 46681deca9
4 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ defmodule LastFm do
alias LastFm.{API, Feed, Refresh, Scrobble, Track, Worker}
alias MusicLibrary.{BackgroundRepo, Repo}
def get_scrobbled_tracks, do: Feed.all_tracks(100)
def get_scrobbled_tracks(limit \\ 100), do: Feed.all_tracks(limit)
def subscribe_to_feed, do: Feed.subscribe()