From 995773f673d02b7075f2dbfc0d0b2150575c54b7 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 14 Apr 2025 10:58:21 +0100 Subject: [PATCH] Default covers to 2000px --- lib/music_library/records/cover.ex | 2 +- test/music_library/records_test.exs | 2 +- test/music_library_web/live/collection_live/index_test.exs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/music_library/records/cover.ex b/lib/music_library/records/cover.ex index f6844ac6..19aafafd 100644 --- a/lib/music_library/records/cover.ex +++ b/lib/music_library/records/cover.ex @@ -6,7 +6,7 @@ defmodule MusicLibrary.Records.Cover do @external_resource fallback_path - @size 600 + @size 2000 def fallback_data, do: unquote(fallback_data) diff --git a/test/music_library/records_test.exs b/test/music_library/records_test.exs index ca9de609..2b4ea600 100644 --- a/test/music_library/records_test.exs +++ b/test/music_library/records_test.exs @@ -310,7 +310,7 @@ defmodule MusicLibrary.RecordsTest do assert updated_record.cover_data !== record.cover_data assert updated_record.cover_hash == - "14A033C9315419E0903B4D74EA6A95D4DC58CC7FE82F6F03BDA5750E7D3A590C" + "6E0D25D1FD1019D771D7EB3F777E2C7C1B06A73A92E56A584D674D86DD8AF441" end end end diff --git a/test/music_library_web/live/collection_live/index_test.exs b/test/music_library_web/live/collection_live/index_test.exs index 6f43b50a..09020fd2 100644 --- a/test/music_library_web/live/collection_live/index_test.exs +++ b/test/music_library_web/live/collection_live/index_test.exs @@ -303,7 +303,7 @@ defmodule MusicLibraryWeb.CollectionLive.IndexTest do ] assert record.cover_hash == - "0ED79C93C5BECC7B28FE05CAA3E49B924A3377EA3219CA8FFAE3B2B0960F2AC8" + "E7238C742E5B8711FC5BFF01A4A1F727D9E404A4D1420429A6B37ABFFC0B5960" {:ok, resized_cover_data} = Cover.resize(cover_data) @@ -407,7 +407,7 @@ defmodule MusicLibraryWeb.CollectionLive.IndexTest do ] assert record.cover_hash == - "0ED79C93C5BECC7B28FE05CAA3E49B924A3377EA3219CA8FFAE3B2B0960F2AC8" + "E7238C742E5B8711FC5BFF01A4A1F727D9E404A4D1420429A6B37ABFFC0B5960" {:ok, resized_cover_data} = Cover.resize(cover_data)