epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.14k stars 62 forks source link

Option to filter by artist/genre case-insensitive? #529

Open stkw0 opened 1 month ago

stkw0 commented 1 month ago

I have some albums where the artist name is the same but the string used is different, eg: Go!Go!7188, GO!GO!7188 and GO!GO! 7188. Same with music genres, where some are wrote as "jrock" other "j-rock", "Jrock" and so on.

Would it be feasible to add an option to be insensitive in regard to case and common separators like the space and the - sign?

epoupon commented 1 month ago

But then we would have to chose one representation: the first one hit?

stkw0 commented 1 month ago

Personally I don't care too much about it, but if MusicBrainz is activated, maybe the name used by that service could be used as the canonical name? In either case, it would require, if the metadata of the files are not changed (in my use case for example I can not do that), to make a map between the actual metadata on the files and the internal representation of LMS.

epoupon commented 1 month ago

Yes but you want a unique artist page where you can find the albums of your artist, and we have to put a single name here (Go!Go!7188 or GO!GO!7188?) Edit: I mean lms does not maintain a list of names for an artist, but it may be somewhat related to #409

stkw0 commented 1 month ago

The first one hit would work and be easier to implement maybe? What I'm currently doing is making playlist for the artists that I want, but is a ugly workaround.

stkw0 commented 1 month ago

Edit: I mean lms does not maintain a list of names for an artist, but it may be somewhat related to #409

Yes, I think my issue is an easier subset of that one. In my case the names are exactly the same, but with different case, not a group with two different names.

epoupon commented 1 month ago

Ah, and also for now, lms does use the mbid of the artists to match them. If the spelling is different for the same mbid, the last one scanned wins. But if a track does not have an artist mbid, then lms does not try to match artists that have one