Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fetch full size artist cover on tapped #540

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

cvanloo
Copy link
Contributor

@cvanloo cvanloo commented Jan 25, 2025

This needs some more testing, since there are some things I'm not yet quite sure about

  • In the Artist model, ID and CoverArtID seem to be the same thing, no? (the id's differ, but both result in the correct image)
  • Why does ArtistPageHeader in its Update method have a nil check for artist == nil, whereas, e.g., AlbumPageHeader doesn't. Is this nil check even necessary?
  • There also was an if artist.CoverArtID == "" check which I removed, as far as my testing goes it also is not required.

@cvanloo cvanloo marked this pull request as ready for review January 25, 2025 21:29
@cvanloo
Copy link
Contributor Author

cvanloo commented Jan 25, 2025

In reference to #539

@dweymouth
Copy link
Owner

In the Artist model, ID and CoverArtID seem to be the same thing, no? (the id's differ, but both result in the correct image)

There is a difference, depending on the server, a different ID may be used for the cover art. Also some servers may not have cover art available for the artist, which is why the coverArtID == nil check was there

@cvanloo cvanloo requested a review from dweymouth January 26, 2025 17:35
Copy link
Owner

@dweymouth dweymouth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@dweymouth dweymouth merged commit 0015302 into dweymouth:main Jan 27, 2025
7 checks passed
@cvanloo
Copy link
Contributor Author

cvanloo commented Jan 27, 2025

closes #539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants