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

Create artist objects for Artists without albums #2583

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

certuna
Copy link
Contributor

@certuna certuna commented Nov 4, 2023

Creates an Artist object in the DB for all artists (track artists & album artists). This makes all artists "clickable", even if they have no albums. This allows the user to read the biography, see which albums the artist is featured on, click through to last.fm & Musicbrainz, etc.

Adds a server option AlbumArtistsOnly to either display all artists, or just those with albums. Default is true which is current behaviour: I know a lot of users when they click on "Artists" don't want to see a huge list populated with artists without albums.

Note: conflicts with #2587 and #2524

AlbumArtistsOnly server option
- rename a.* to al.* to reduce confusion
- add ToArtist()
- make Artist blank in fixAlbumArtist()
fix test for aggregating Size
change ToAlbumArtist() so that it doesn't add Size, as this is now done in ToArtist()
fix SongCount test due to changes in the ToAlbumArtist() function
change purgeEmpty() to only delete when artist has neither albums nor tracks.
remove removeNonAlbumArtistIds(), not needed anymore
removeNonAlbumArtistIds() not needed anymore
adds refreshSongArtists()
Change test for new fixAlbumArtist() function
Revert change in fixAlbumArtist(), not for this PR
Copy link

github-actions bot commented Nov 4, 2023

Download the artifacts for this pull request:

swap functions for easier comparison
@certuna certuna changed the title Create artist objects for non-Album Artists Create artist objects for Artists without albums Nov 5, 2023
@lddsb
Copy link

lddsb commented Nov 9, 2023

This is great! I really need it

@kobayashi90
Copy link

kobayashi90 commented Dec 2, 2023

Please merge it already.. let 0.50.2 be a thing..

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.

None yet

3 participants