Skip to content

Commit

Permalink
fix: Default to med-sized cover for WS response
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion committed Mar 3, 2024
1 parent e4b513a commit 234fde0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/websocket/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ defmodule Toru.WS.TrackFetcher do
with {:ok, res} <- fetch_res(lfm_url!(username), :no_cache),
[recent_track | _] <- res |> Map.get("recenttracks", []) |> Map.get("track", []) do
# TODO: This response should be better structured - ideally wrapped in "data" or something
Poison.encode!(get_json(%{}, recent_track))
Poison.encode!(get_json(%{cover_size: "medium"}, recent_track))
else
_ -> nil
end
Expand Down

0 comments on commit 234fde0

Please sign in to comment.