Move refresh config and callers to ListeningStats
This commit is contained in:
+5
-3
@@ -53,14 +53,16 @@ user_agent = "MusicLibrary/0.1.0 ( cloud8421@gmail.com )"
|
||||
|
||||
config :music_library, LastFm,
|
||||
user: "username",
|
||||
auto_refresh: true,
|
||||
# refresh every 5 minutes
|
||||
refresh_interval: System.convert_time_unit(300, :second, :millisecond),
|
||||
api_key: "change me",
|
||||
shared_secret: "change me",
|
||||
user_agent: user_agent,
|
||||
api_cooldown: 500
|
||||
|
||||
config :music_library, MusicLibrary.ListeningStats.Refresh,
|
||||
auto_refresh: true,
|
||||
# refresh every 5 minutes
|
||||
refresh_interval: System.convert_time_unit(300, :second, :millisecond)
|
||||
|
||||
config :music_library, MusicBrainz, user_agent: user_agent, api_cooldown: 500
|
||||
|
||||
config :music_library, Discogs,
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@ config :music_library, monitoring_routes: true
|
||||
|
||||
config :music_library, MusicLibrary.Mailer, adapter: Swoosh.Adapters.Local
|
||||
|
||||
config :music_library, LastFm,
|
||||
config :music_library, MusicLibrary.ListeningStats.Refresh,
|
||||
refresh_interval: System.convert_time_unit(500, :second, :millisecond)
|
||||
|
||||
# Do not include metadata nor timestamps in development logs
|
||||
|
||||
+2
-1
@@ -56,13 +56,14 @@ config :phoenix_live_view,
|
||||
config :music_library, monitoring_routes: true
|
||||
|
||||
config :music_library, LastFm,
|
||||
auto_refresh: false,
|
||||
req_options: [
|
||||
plug: {Req.Test, LastFm.API},
|
||||
max_retries: 0
|
||||
],
|
||||
api_cooldown: 0
|
||||
|
||||
config :music_library, MusicLibrary.ListeningStats.Refresh, auto_refresh: false
|
||||
|
||||
config :music_library, MusicBrainz,
|
||||
req_options: [
|
||||
plug: {Req.Test, MusicBrainz.API},
|
||||
|
||||
Reference in New Issue
Block a user