From 234fde0415511ab26ec77524c41dbff495220569 Mon Sep 17 00:00:00 2001 From: kiosion Date: Sun, 3 Mar 2024 05:19:02 -0500 Subject: [PATCH] fix: Default to med-sized cover for WS response --- lib/websocket/fetcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/websocket/fetcher.ex b/lib/websocket/fetcher.ex index e0acbdf..482a14e 100644 --- a/lib/websocket/fetcher.ex +++ b/lib/websocket/fetcher.ex @@ -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