LB-1103: Only show front cover art in ListenCards #3167
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requested by @Aerozol, for cases where the user has provided a release MBID, but there is no front image for that release (for example a vinyl release with liner notes added but no front cover: https://musicbrainz.org/release/ce5deb72-4bc3-461f-b92e-1637709f70ef/cover-art).
In that case, fallback to another method to get a front cover (from the release group, finds a front image if there is one), in this case: https://musicbrainz.org/release/62d9695f-ac89-474c-b9c8-ee95828e2e58/cover-art
I kept the rest of the mechanism as untouched as possible, the new option is, well, optional, and defaults to the previous logic.
Before:
![image](https://private-user-images.githubusercontent.com/6179856/410899825-60899090-b8fa-45e2-97c8-483d273f5ef6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDMyNzQsIm5iZiI6MTczOTQwMjk3NCwicGF0aCI6Ii82MTc5ODU2LzQxMDg5OTgyNS02MDg5OTA5MC1iOGZhLTQ1ZTItOTdjOC00ODNkMjczZjVlZjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMT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